recallMessage method
- String messageId
Recalls the sent message.
Param messageId
The message ID.
Throws A description of the exception. See ChatError.
Implementation
Future<void> recallMessage(String messageId) async {
Map req = {"msg_id": messageId};
Map result =
await ChatChannel.invokeMethod(ChatMethodKeys.recallMessage, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}