Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaojiayan committed Jun 14, 2018
2 parents 2c5b52b + 2e58775 commit 9d549db
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ios/RCTRongCloudIMLib/RCTRongCloudMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit 9d549db

Please sign in to comment.