mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-04-26 12:27:51 +02:00
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:
commit
b3b1ea33dd
@ -133,7 +133,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
|||||||
|
|
||||||
List<Device> get notThisDevice => List<Device>.from(devices)
|
List<Device> get notThisDevice => List<Device>.from(devices)
|
||||||
..removeWhere(_isOwnDevice)
|
..removeWhere(_isOwnDevice)
|
||||||
..sort((a, b) => b.lastSeenTs.compareTo(a.lastSeenTs));
|
..sort((a, b) => (b.lastSeenTs ?? 0).compareTo(a.lastSeenTs ?? 0));
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => DevicesSettingsView(this);
|
Widget build(BuildContext context) => DevicesSettingsView(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user