fix auto download file

This commit is contained in:
Danmei Chen 2019-08-07 10:08:28 +02:00
parent 882cf5afa3
commit a225082067

View file

@ -1396,13 +1396,15 @@ void on_chat_room_conference_alert(LinphoneChatRoom *cr, const LinphoneEventLog
} else {
NSString *key = @"localfile";
//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(), ^{
[LinphoneManager setValueInMessageAppData:name forKey:key inMessage:message];
//[LinphoneManager setValueInMessageAppData:filePath forKey:@"cachedfile" inMessage:message];
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:view];
[view.tableController scrollToLastUnread:TRUE];
});}
});} else {
LOGE(@"[Auto download error] can not save the file %@", name);
}
}
}
}