File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1818{
1919 NSURL *jsCodeLocation;
2020
21- jsCodeLocation = [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot: @" index.ios" fallbackResource: nil ];
22- // jsCodeLocation = [NSURL URLWithString:@"http://192.168.9.113 :8081/index.ios.bundle?platform=ios&dev=true"];
21+ // jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22+ jsCodeLocation = [NSURL URLWithString: @" http://192.168.10.155 :8081/index.ios.bundle?platform=ios&dev=true" ];
2323 RCTRootView *rootView = [[RCTRootView alloc ] initWithBundleURL: jsCodeLocation
2424 moduleName: @" ReactJChat"
2525 initialProperties: nil
Original file line number Diff line number Diff line change @@ -1961,6 +1961,11 @@ - (JMSGOptionalContent *)convertDicToJMSGOptionalContent:(NSDictionary *)dic {
19611961
19621962 JMSGMessage *message = [conversation messageWithMessageId: param[@" id" ]];
19631963
1964+ if (!message) {
1965+ failCallback (@[[self getErrorWithLog: @" cann't find the message from this id" ]]);
1966+ return ;
1967+ }
1968+
19641969 if ([message.content isKindOfClass: [JMSGMediaAbstractContent class ]]) {
19651970 JMSGMediaAbstractContent *content = (JMSGMediaAbstractContent *)message.content ;
19661971 content.uploadHandler = ^(float percent, NSString *msgID) {
Original file line number Diff line number Diff line change 11{
22 "name" : " jmessage-react-plugin" ,
3- "version" : " 2.1.9 " ,
3+ "version" : " 2.2.0 " ,
44 "description" : " a jmessage plugin for react native application" ,
55 "main" : " index.js" ,
66 "repository" : {
You can’t perform that action at this time.
0 commit comments