2020-04-26 16:15:48 +00:00
|
|
|
import 'package:famedlysdk/famedlysdk.dart';
|
|
|
|
|
|
|
|
extension ClientPresenceExtension on Client {
|
|
|
|
List<Presence> get statusList {
|
2020-05-09 07:30:03 +00:00
|
|
|
final statusList = presences.values.toList().reversed.toList();
|
2020-06-10 08:07:01 +00:00
|
|
|
statusList.removeWhere((p) => p.presence.statusMsg?.isEmpty ?? true);
|
2020-05-09 07:30:03 +00:00
|
|
|
statusList.reversed.toList();
|
2020-04-26 16:15:48 +00:00
|
|
|
return statusList;
|
|
|
|
}
|
|
|
|
}
|