deleteMessages static method

Future<void> deleteMessages(
  1. int conversationType,
  2. String targetId,
  3. dynamic finished(
    1. int? code
    )?
)

删除特定会话的消息

conversationType 会话类型,参见枚举 RCConversationType

targetId 会话 id

Implementation

static Future<void> deleteMessages(int conversationType, String targetId, Function(int? code)? finished) async {
  Map map = {"conversationType": conversationType, "targetId": targetId};
  int? code = await _channel.invokeMethod(RCMethodKey.DeleteMessages, map);
  if (finished != null) {
    finished(code);
  }
}