mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-28 07:19:32 +01:00
11 lines
327 B
Dart
11 lines
327 B
Dart
import 'package:famedlysdk/famedlysdk.dart';
|
|
|
|
extension ClientPresenceExtension on Client {
|
|
List<Presence> get statusList {
|
|
final statusList = presences.values.toList();
|
|
statusList.removeWhere((p) => p.statusMsg?.isEmpty ?? true);
|
|
statusList.sort((a, b) => b.time.compareTo(a.time));
|
|
return statusList;
|
|
}
|
|
}
|