forked from mirrors/linphone-iphone
fix problem of loading chats list
This commit is contained in:
parent
c84ba5fe5f
commit
992dbb8415
3 changed files with 7 additions and 17 deletions
|
|
@ -35,10 +35,6 @@
|
|||
selector:@selector(callUpdateEvent:)
|
||||
name:kLinphoneCallUpdate
|
||||
object:nil];
|
||||
[NSNotificationCenter.defaultCenter addObserver:self
|
||||
selector:@selector(onGlobalStateChanged:)
|
||||
name:kLinphoneGlobalStateUpdate
|
||||
object:nil];
|
||||
[_backToCallButton update];
|
||||
self.tableController.waitView = _waitView;
|
||||
[self setEditing:NO];
|
||||
|
|
@ -61,16 +57,6 @@
|
|||
[_backToCallButton update];
|
||||
}
|
||||
|
||||
- (void)onGlobalStateChanged:(NSNotification *)notif {
|
||||
LinphoneGlobalState state = (LinphoneGlobalState)[[[notif userInfo] valueForKey:@"state"] integerValue];
|
||||
if (state == LinphoneGlobalStartup) {
|
||||
_waitView.hidden = NO;
|
||||
} else if (state == LinphoneGlobalOn) {
|
||||
[_tableController loadData];
|
||||
_waitView.hidden = YES;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - UICompositeViewDelegate Functions
|
||||
|
||||
static UICompositeViewDescription *compositeDescription = nil;
|
||||
|
|
|
|||
|
|
@ -917,7 +917,7 @@ static void linphone_iphone_configuring_status_changed(LinphoneCore *lc, Linphon
|
|||
- (void)onConfiguringStatusChanged:(LinphoneConfiguringState)status withMessage:(const char *)message {
|
||||
LOGI(@"onConfiguringStatusChanged: %s %@", linphone_configuring_state_to_string(status),
|
||||
message ? [NSString stringWithFormat:@"(message: %s)", message] : @"");
|
||||
|
||||
|
||||
NSDictionary *dict = [NSDictionary
|
||||
dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:status], @"state",
|
||||
[NSString stringWithUTF8String:message ? message : ""], @"message", nil];
|
||||
|
|
@ -1837,7 +1837,7 @@ void networkReachabilityCallBack(SCNetworkReachabilityRef target, SCNetworkReach
|
|||
}
|
||||
|
||||
linphone_core_set_zrtp_secrets_file(theLinphoneCore, [zrtpSecretsFileName UTF8String]);
|
||||
linphone_core_set_chat_database_path(theLinphoneCore, [chatDBFileName UTF8String]);
|
||||
//linphone_core_set_chat_database_path(theLinphoneCore, [chatDBFileName UTF8String]);
|
||||
linphone_core_set_call_logs_database_path(theLinphoneCore, [chatDBFileName UTF8String]);
|
||||
|
||||
[self setupNetworkReachabilityCallback];
|
||||
|
|
|
|||
|
|
@ -329,7 +329,11 @@ static RootViewManager *rootViewManagerInstance = nil;
|
|||
|
||||
[errView addAction:defaultAction];
|
||||
[self presentViewController:errView animated:YES completion:nil];
|
||||
}
|
||||
} else if (state == LinphoneRegistrationOk && [currentView equal:ChatsListView.compositeViewDescription]) {
|
||||
// update avatarImages
|
||||
//ChatsListView *view = VIEW(ChatsListView);
|
||||
//[view.tableController loadData];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)onGlobalStateChanged:(NSNotification *)notif {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue