disable saveDataToUserDefaults as extensions is not activated

This commit is contained in:
Danmei Chen 2019-06-20 16:49:52 +02:00
parent df865e3369
commit 2ff978fa00
2 changed files with 6 additions and 0 deletions

View file

@ -129,6 +129,8 @@ static int sorted_history_comparison(LinphoneChatRoom *to_insert, LinphoneChatRo
}
+ (void) saveDataToUserDefaults {
// As extensions is disabled by default, this function takes too much CPU.
#if 0
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.belledonne-communications.linphone.widget"];
MSList *sorted = nil;
const MSList *unsorted = linphone_core_get_chat_rooms(LC);
@ -192,6 +194,7 @@ static int sorted_history_comparison(LinphoneChatRoom *to_insert, LinphoneChatRo
}
[defaults setObject:addresses forKey:@"chatrooms"];
#endif
}
- (void)markCellAsRead:(LinphoneChatRoom *)chatRoom {

View file

@ -168,6 +168,8 @@
}
+ (void) saveDataToUserDefaults {
// As extensions is disabled by default, this function takes too much CPU.
#if 0
const bctbx_list_t *logs = linphone_core_get_call_logs(LC);
NSUserDefaults *mySharedDefaults = [[NSUserDefaults alloc] initWithSuiteName: @"group.belledonne-communications.linphone.widget"];
NSMutableArray *logsShare = [NSMutableArray array];
@ -223,6 +225,7 @@
}
[mySharedDefaults setObject:logsShare forKey:@"logs"];
#endif
}
- (void)computeSections {