registerRevoke method
void
registerRevoke(
- String revokedMsgContent
)
Implementation
void registerRevoke(String revokedMsgContent) {
if (_msgRevokedSub == null) {
_msgRevokedSub =
ChatServiceObserverRepo.observeRevokeMessage().listen((events) {
events.forEach((action) {
if (action.messageRefer != null &&
action.messageRefer!.conversationId !=
NIMChatCache.instance.currentChatSession?.conversationId) {
Alog.i(
tag: 'ChatKitClientRepo',
content: 'received message revoke notify and save to local');
onMessageRevokedNotify(action, revokedMsgContent);
}
});
});
}
}