Skip to content

Commit 36de63c

Browse files
committed
Merge branch 'master' of github.com:reactnativecomponent/react-native-netease-im
2 parents ca0d2c6 + 9f43bf9 commit 36de63c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ios/RNNeteaseIm/RNNeteaseIm/ConversationViewController.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,9 @@ -(void)sendMessage:(NSString *)mess andApnsMembers:(NSArray *)members{
352352
}
353353
//发送图片
354354
-(void)sendImageMessages:( NSString *)path displayName:( NSString *)displayName{
355-
356-
NIMMessage *message = [NIMMessageMaker msgWithImagePath:path];
355+
UIImage *img = [[UIImage alloc]initWithContentsOfFile:path];
356+
NIMMessage *message = [NIMMessageMaker msgWithImage:img];
357+
// NIMMessage *message = [NIMMessageMaker msgWithImagePath:path];
357358
[[NIMSDK sharedSDK].chatManager sendMessage:message toSession:_session error:nil];
358359
}
359360

0 commit comments

Comments
 (0)