fluffychat/lib/utils/client_presence_extension.dart

10 lines
262 B
Dart
Raw Normal View History

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;
}
}