forked from mirrors/linphone-iphone
Compare commits
1 commit
master
...
release/4.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44a4928d9a |
1 changed files with 4 additions and 2 deletions
|
|
@ -1417,13 +1417,15 @@ void on_chat_room_conference_alert(LinphoneChatRoom *cr, const LinphoneEventLog
|
||||||
} else {
|
} else {
|
||||||
NSString *key = @"localfile";
|
NSString *key = @"localfile";
|
||||||
//write file to path
|
//write file to path
|
||||||
if([view writeFileInICloud:data fileURL:[view getICloudFileUrl:name]]) {
|
if([self writeFileInICloud:data fileURL:[self getICloudFileUrl:name]]) {
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[LinphoneManager setValueInMessageAppData:name forKey:key inMessage:message];
|
[LinphoneManager setValueInMessageAppData:name forKey:key inMessage:message];
|
||||||
//[LinphoneManager setValueInMessageAppData:filePath forKey:@"cachedfile" inMessage:message];
|
//[LinphoneManager setValueInMessageAppData:filePath forKey:@"cachedfile" inMessage:message];
|
||||||
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:view];
|
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:view];
|
||||||
[view.tableController scrollToLastUnread:TRUE];
|
[view.tableController scrollToLastUnread:TRUE];
|
||||||
});}
|
});} else {
|
||||||
|
LOGE(@"[Auto download error] can not save the file %@", name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue