Skip to content

Commit e793321

Browse files
committed
update fix history chatroom crash bug
1 parent dbf61e2 commit e793321

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ios/RCTJMessageModule/RCTJMessageModule.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,11 @@ - (JMSGOptionalContent *)convertDicToJMSGOptionalContent:(NSDictionary *)dic {
830830
return [message messageToDictionary];
831831
}];
832832

833+
if (!messageArr) {
834+
successCallback(@[@[]]);
835+
return;
836+
}
837+
833838
successCallback(@[messageDicArr]);
834839
}];
835840
}

0 commit comments

Comments
 (0)