fluffychat/lib/utils/client_presence_extension.dart

11 lines
322 B
Dart
Raw Normal View History

import 'package:famedlysdk/famedlysdk.dart';
extension ClientPresenceExtension on Client {
List<Presence> get statusList {
2020-05-09 09:30:03 +02:00
final statusList = presences.values.toList().reversed.toList();
2020-05-06 19:26:59 +02:00
statusList.removeWhere((p) => p.statusMsg?.isEmpty ?? true);
2020-05-09 09:30:03 +02:00
statusList.reversed.toList();
return statusList;
}
}