sidemenu: remove link account item if account was linked

This commit is contained in:
Gautier Pelloux-Prayer 2016-08-30 15:09:25 +02:00
parent f324a8701a
commit 8f770bf3a3
2 changed files with 2 additions and 1 deletions

View file

@ -184,6 +184,7 @@ void assistant_activate_phone_number_link(LinphoneAccountCreator *creator, Linph
AssistantLinkView *thiz = (__bridge AssistantLinkView *)(linphone_account_creator_get_user_data(creator));
thiz.waitView.hidden = YES;
if (status == LinphoneAccountCreatorOK) {
[LinphoneManager.instance lpConfigSetInt:0 forKey:@"must_link_account_time"];
[PhoneMainView.instance popToView:DialerView.compositeViewDescription];
} else {
[thiz showErrorPopup:resp];

View file

@ -28,7 +28,7 @@
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[_sideMenuTableViewController viewWillAppear:animated];
[NSNotificationCenter.defaultCenter addObserver:self
selector:@selector(registrationUpdateEvent:)
name:kLinphoneRegistrationUpdate