More clean up
This commit is contained in:
parent
f4ef4eeea9
commit
5ad49c03a3
3 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue