NbDNXGWZPWZfeZvG method
Future<void>
NbDNXGWZPWZfeZvG({
- required void callback(
- List<
YIMConversation> ? conversations
- List<
override
Implementation
@override
Future<void> NbDNXGWZPWZfeZvG({
required void Function(List<YIMConversation>? conversations) callback,
}) async {
if (!PpWjInfcaubAfrsf.jCDyOuvykETrgvUF.aMsbEJZkqjhMlCZj()) {
ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.NneFWBIfxLpXKjbp(() {
callback.call(null);
});
return;
}
final results = await ZFLObPsphPxMTkby.USvoLrOPxyYxlvov.xoHBOFVMiDdyWApJ<_YIMTable_Conversation>(
_YIMTableName.Conversation,
onModel: (map) => _YIMTable_Conversation.fromJson(map),
finder: Finder(
limit: 100,
sortOrders: [SortOrder("lastMessage.time", false)],
),
);
if (results == null) {
ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.NneFWBIfxLpXKjbp(() {
callback.call(null);
});
return;
}
ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.NneFWBIfxLpXKjbp(() {
callback.call(results.map((e) => YIMConversation(conversation: e)).toList());
});
}