FurryChat/lib/utils/client_presence_extension.dart
2020-06-10 08:07:01 +00:00

11 lines
331 B
Dart

import 'package:famedlysdk/famedlysdk.dart';
extension ClientPresenceExtension on Client {
List<Presence> get statusList {
final statusList = presences.values.toList().reversed.toList();
statusList.removeWhere((p) => p.presence.statusMsg?.isEmpty ?? true);
statusList.reversed.toList();
return statusList;
}
}