From d4ba4d99abfba5cbb401653b739efef4d2c4c0d9 Mon Sep 17 00:00:00 2001 From: sunxiao Date: Wed, 13 Jun 2018 19:17:27 +0800 Subject: [PATCH] FIX(Recall message) fix recall message --- ios/RCTRongCloudIMLib/RCTRongCloudMessage.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ios/RCTRongCloudIMLib/RCTRongCloudMessage.m b/ios/RCTRongCloudIMLib/RCTRongCloudMessage.m index 1a7ca38..afa2b92 100644 --- a/ios/RCTRongCloudIMLib/RCTRongCloudMessage.m +++ b/ios/RCTRongCloudIMLib/RCTRongCloudMessage.m @@ -864,10 +864,7 @@ + (void)recallMessage:(NSDictionary *)message RCConversationType conversationType = [self getConversationType:[message[@"conversationType"] intValue]]; RCMessageDirection direction = [message[@"messageDirection"] intValue] == 1 ? MessageDirection_SEND : MessageDirection_RECEIVE; - RCTextMessage * textMessage = [RCTextMessage messageWithContent:message[@"content"]]; - textMessage.extra = message[@"extra"]; - - RCMessage * recallMessage = [[RCMessage alloc] initWithType:conversationType targetId:[NSString stringWithFormat:@"%@",message[@"targetId"]] direction:direction messageId:[message[@"messageId"] longValue] content:textMessage]; + RCMessage * recallMessage = [[RCMessage alloc] initWithType:conversationType targetId:[NSString stringWithFormat:@"%@",message[@"targetId"]] direction:direction messageId:[message[@"messageId"] longValue] content:[RCMessageContent new]]; recallMessage.objectName = message[@"objectName"]; recallMessage.senderUserId = [NSString stringWithFormat:@"%@",message[@"senderUserId"]]; recallMessage.messageUId = message[@"messageUId"];