fix no full image

This commit is contained in:
Danmei Chen 2018-06-18 15:05:33 +02:00
parent 22f691c948
commit 0a98bd59a4
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@
imageSize = [UIChatBubbleTextCell getMediaMessageSizefromOriginalSize:[representation dimensions] withWidth:chatTableView.tableView.frame.size.width];
CGImageRef tmpImg = [self cropImageFromRepresentation:representation];
UIImage *image = [[UIImage alloc] initWithCGImage:tmpImg];
[self loadImageAsset:nil thumb:thumb image:image];
[self loadImageAsset:asset thumb:thumb image:image];
}
- (void) loadVideoAsset: (AVAsset *) asset {

View file

@ -240,7 +240,7 @@ static LinphoneBuffer *linphone_iphone_file_transfer_send(LinphoneChatMessage *m
contents:[NSMutableData dataWithData:data]
attributes:nil];
if ([[url pathExtension]isEqualToString:@"MOV"])
if ([[url pathExtension] isEqualToString:@"MOV"])
[self uploadData:data forChatRoom:chatRoom type:nil subtype:nil name:name key:@"localvideo" keyData:name qualityData:nil];
else
[self uploadData:data forChatRoom:chatRoom type:@"file" subtype:nil name:name key:@"localfile" keyData:name qualityData:nil];