recallMessage method
Implementation
Future<void> recallMessage(Message message) async {
int index = msgModelList
.indexWhere((element) => message.msgId == element.message.msgId);
if (index != -1) {
try {
await ChatUIKit.instance.recallMessage(message: message);
refresh();
} catch (e) {
debugPrint('recallMessage err: $e');
}
}
}