getTotalUnreadMessagesCount method

Future<QBMessagesCounter?> getTotalUnreadMessagesCount({
  1. List<String>? dialogIds,
})

Implementation

Future<QBMessagesCounter?> getTotalUnreadMessagesCount({List<String>? dialogIds}) async {
  Map<Object?, Object?> response = await _chatModule.invokeMethod(GET_TOTAL_UNREAD_MESSAGES_COUNT_METHOD, dialogIds);

  Map<String, Object>? resultMap = HashMap.from(response);

  QBMessagesCounter? messageCounter = QBMessagesCounterMapper.mapToQBMessageCounter(resultMap);

  return messageCounter;
}