fluffychat/lib/utils/client_presence_extension.dart
2020-05-06 17:45:59 +02:00

10 lines
262 B
Dart

import 'package:famedlysdk/famedlysdk.dart';
extension ClientPresenceExtension on Client {
List<Presence> get statusList {
final statusList = presences.values.toList();
statusList.sort((a, b) => b.time.compareTo(a.time));
return statusList;
}
}