Merge branch 'soru/fix-devices-page' into 'main'

fix: missing null check

Closes #527

See merge request famedly/fluffychat!496
This commit is contained in:
Krille Fear 2021-08-28 09:10:05 +00:00
commit b3b1ea33dd
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
List<Device> get notThisDevice => List<Device>.from(devices)
..removeWhere(_isOwnDevice)
..sort((a, b) => b.lastSeenTs.compareTo(a.lastSeenTs));
..sort((a, b) => (b.lastSeenTs ?? 0).compareTo(a.lastSeenTs ?? 0));
@override
Widget build(BuildContext context) => DevicesSettingsView(this);