FurryChat/lib/utils/client_presence_extension.dart
2020-10-03 17:09:45 +02:00

8 lines
224 B
Dart

import 'package:famedlysdk/famedlysdk.dart';
extension ClientPresenceExtension on Client {
List<Presence> get statuses => presences.values
.where((p) => p.presence.statusMsg?.isNotEmpty ?? false)
.toList();
}