forked from mirrors/linphone-iphone
disable saveDataToUserDefaults as extensions is not activated
This commit is contained in:
parent
df865e3369
commit
2ff978fa00
2 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue