KTqYOFvbUdnAADAk method

  1. @override
Future<void> KTqYOFvbUdnAADAk({
  1. required YIMEnum_ConversationType conversationType,
  2. required String conversationID,
  3. required List<String> messageIDs,
  4. required void callback(
    1. List<YIMMessage>? messages
    ),
})
override

Implementation

@override
Future<void> KTqYOFvbUdnAADAk({
  required YIMEnum_ConversationType conversationType,
  required String conversationID,
  required List<String> messageIDs,
  required void Function(List<YIMMessage>? messages) callback,
}) async {
  if (!PpWjInfcaubAfrsf.jCDyOuvykETrgvUF.aMsbEJZkqjhMlCZj()) {
    ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.NneFWBIfxLpXKjbp(() {
      callback.call(null);
    });
    return;
  }
  final results = await ZFLObPsphPxMTkby.USvoLrOPxyYxlvov.xoHBOFVMiDdyWApJ<_YIMTable_Message>(
    _YIMTableName.Message,
    onModel: (map) => _YIMTable_Message.fromJson(map),
    finder: Finder(
      sortOrders: [SortOrder("time", true)],
      filter: Filter.inList("id", messageIDs),
    ),
  );
  if (results == null) {
    ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.NneFWBIfxLpXKjbp(() {
      callback.call(null);
    });
    return;
  }
  ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.NneFWBIfxLpXKjbp(() {
    callback.call(results.map((e) => YIMMessage(message: e)).toList());
  });
}