More clean up

This commit is contained in:
Christian Pauly 2020-01-19 15:30:23 +01:00
commit 5ad49c03a3
3 changed files with 6 additions and 3 deletions

View file

@ -91,7 +91,7 @@ class _SettingsState extends State<Settings> {
@override
Widget build(BuildContext context) {
final Client client = Matrix.of(context).client;
profileFuture ??= client.getProfileFromUserId(client.userID);
profileFuture ??= client.ownProfile;
profileFuture.then((p) {
if (mounted) setState(() => profile = p);
});