fix: set avatar
This commit is contained in:
parent
6a3853511f
commit
25ac1721ce
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class Settings extends StatefulWidget {
|
||||||
|
|
||||||
class SettingsController extends State<Settings> {
|
class SettingsController extends State<Settings> {
|
||||||
Future<dynamic> profileFuture;
|
Future<dynamic> profileFuture;
|
||||||
dynamic profile;
|
Profile profile;
|
||||||
Future<bool> crossSigningCachedFuture;
|
Future<bool> crossSigningCachedFuture;
|
||||||
bool crossSigningCached;
|
bool crossSigningCached;
|
||||||
Future<bool> megolmBackupCachedFuture;
|
Future<bool> megolmBackupCachedFuture;
|
||||||
|
|
@ -197,7 +197,7 @@ class SettingsController extends State<Settings> {
|
||||||
}
|
}
|
||||||
|
|
||||||
void setAvatarAction() async {
|
void setAvatarAction() async {
|
||||||
final action = profile?.avatar == null
|
final action = profile?.avatarUrl == null
|
||||||
? AvatarAction.change
|
? AvatarAction.change
|
||||||
: await showConfirmationDialog<AvatarAction>(
|
: await showConfirmationDialog<AvatarAction>(
|
||||||
context: context,
|
context: context,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue