From 839b0d042bee527410fb1adf754a9cb8a1a603c7 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 5 Jun 2021 09:21:48 +0200 Subject: [PATCH] fix: set avatar --- lib/pages/settings.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/settings.dart b/lib/pages/settings.dart index 1944f9fa..dcd3eb2f 100644 --- a/lib/pages/settings.dart +++ b/lib/pages/settings.dart @@ -29,7 +29,7 @@ class Settings extends StatefulWidget { class SettingsController extends State { Future profileFuture; - dynamic profile; + Profile profile; Future crossSigningCachedFuture; bool crossSigningCached; Future megolmBackupCachedFuture; @@ -197,7 +197,7 @@ class SettingsController extends State { } void setAvatarAction() async { - final action = profile?.avatar == null + final action = profile?.avatarUrl == null ? AvatarAction.change : await showConfirmationDialog( context: context,