2020-04-26 16:15:48 +00:00
|
|
|
import 'package:famedlysdk/famedlysdk.dart';
|
|
|
|
|
|
|
|
extension ClientPresenceExtension on Client {
|
|
|
|
List<Presence> get statusList {
|
|
|
|
final statusList = presences.values.toList();
|
2020-05-06 17:26:59 +00:00
|
|
|
statusList.removeWhere((p) => p.statusMsg?.isEmpty ?? true);
|
2020-04-26 16:15:48 +00:00
|
|
|
statusList.sort((a, b) => b.time.compareTo(a.time));
|
|
|
|
return statusList;
|
|
|
|
}
|
|
|
|
}
|