NbDNXGWZPWZfeZvG method

  1. @override
Future<void> NbDNXGWZPWZfeZvG({
  1. required void callback(
    1. List<YIMConversation>? conversations
    ),
})
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());
  });
}