2
0
mirror of https://gitlab.com/famedly/fluffychat.git synced 2024-12-20 03:52:35 +01:00
fluffychat/lib/utils/client_presence_extension.dart

8 lines
224 B
Dart
Raw Normal View History

import 'package:famedlysdk/famedlysdk.dart';
extension ClientPresenceExtension on Client {
2020-10-03 15:53:08 +02:00
List<Presence> get statuses => presences.values
.where((p) => p.presence.statusMsg?.isNotEmpty ?? false)
.toList();
}