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,