fix: Show device name in account information correctly

This commit is contained in:
Sorunome 2020-10-04 20:44:44 +02:00
parent 1d5607f9c5
commit 468c2587aa
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- Add ability to manage emote packs with different state keys - Add ability to manage emote packs with different state keys
### Fixes ### Fixes
- Fix amoled / theme settings not always saving properly - Fix amoled / theme settings not always saving properly
- Show device name in account information correctly
# Version 0.19.0 - 2020-09-21 # Version 0.19.0 - 2020-09-21
### Features ### Features

View File

@ -37,7 +37,9 @@ class AppInfo extends StatelessWidget {
), ),
ListTile( ListTile(
title: Text('Device name:'), title: Text('Device name:'),
subtitle: Text(client.deviceName), subtitle: Text(client.userDeviceKeys[client.userID]
?.deviceKeys[client.deviceID]?.deviceDisplayName ??
L10n.of(context).unknownDevice),
), ),
ListTile( ListTile(
title: Text('Device ID:'), title: Text('Device ID:'),