mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-03 17:59:45 +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;
|
|
}
|
|
}
|