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