refactor: Rename models for matrix spec 1.16

This commit is contained in:
Christian Kußowski 2025-09-30 14:11:57 +02:00
commit 57a5e1c96f
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
5 changed files with 13 additions and 9 deletions

View file

@ -48,7 +48,11 @@ class SettingsController extends State<Settings> {
final matrix = Matrix.of(context);
final success = await showFutureLoadingDialog(
context: context,
future: () => matrix.client.setDisplayName(matrix.client.userID!, input),
future: () => matrix.client.setProfileField(
matrix.client.userID!,
'displayname',
{'displayname': input},
),
);
if (success.error == null) {
updateProfile();