mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-07 12:39:31 +01:00
12 lines
353 B
Dart
12 lines
353 B
Dart
import 'package:famedlysdk/famedlysdk.dart';
|
|
import 'presence_extension.dart';
|
|
|
|
extension ClientPresenceExtension on Client {
|
|
List<Presence> get statusList {
|
|
final statusList = presences.values.toList();
|
|
statusList.removeWhere((Presence p) => !p.isStatus);
|
|
statusList.sort((a, b) => b.time.compareTo(a.time));
|
|
return statusList;
|
|
}
|
|
}
|