clearConversationUnreadMessageCount method

Future<Map> clearConversationUnreadMessageCount(
  1. String conversationID,
  2. int conversationType
)

Implementation

Future<Map<dynamic, dynamic>> clearConversationUnreadMessageCount(
    String conversationID, int conversationType) async {
  final result = await promiseToFuture(ZIM
          .getInstance()!
          .clearConversationUnreadMessageCount(
              conversationID, conversationType))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}