cleanConversationUnreadMessageCount method

  1. @override
Future<V2TimCallback> cleanConversationUnreadMessageCount({
  1. required String conversationID,
  2. required int cleanTimestamp,
  3. required int cleanSequence,
})
override

Implementation

@override
Future<V2TimCallback> cleanConversationUnreadMessageCount({
  required String conversationID,
  required int cleanTimestamp,
  required int cleanSequence,
}) async {
  Map<String, dynamic> param = {
    "conversationID": conversationID,
    "cleanTimestamp": cleanTimestamp,
    "cleanSequence": cleanSequence,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        'cleanConversationUnreadMessageCount',
        buildConversationManagerParam(
          param,
        ),
      ),
    ),
  );
  log("cleanConversationUnreadMessageCount", param, resp.toLogString());
  return resp;
}