canChatMessageBeDeleted method
Determine if a specific message can be deleted.
msgId
the message Id
Return true if the message can be deleted, otherwise False.
Implementation
@override
Future<bool> canChatMessageBeDeleted(String msgId) async {
var params = <String, dynamic>{};
params.putIfAbsent("msgId", () => msgId);
return await methodChannel
.invokeMethod<bool>('canChatMessageBeDeleted', params)
.then<bool>((bool? value) => value ?? false);
}