deleteMessageByIds method
~english Deletes messages with message ids.
Param messageIds
The list of message ids.
Throws A description of the exception. See ChatError. ~end
~chinese 根据时间删除本地消息。
Param messageIds
指定的消息id列表。
Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 ChatError。 ~end
Implementation
Future<void> deleteMessageByIds(List<String> messageIds) async {
Map req = this._toJson();
req['messageIds'] = messageIds;
Map result = await _emConversationChannel.invokeMethod(
ChatMethodKeys.deleteMessageByIds, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}