revokeMessage method

Future<NIMResult<void>> revokeMessage(
  1. ChatMessage message
)

撤回消息

Implementation

Future<NIMResult<void>> revokeMessage(ChatMessage message) {
  return ChatMessageRepo.revokeMessage(message.nimMessage).then((value) {
    if (value.isSuccess) {
      message.isRevoke = true;
      _updateMessage(message);
    }
    return value;
  });
}