From 8f770bf3a3681a53812732d55f4459d382134ad6 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 30 Aug 2016 15:09:25 +0200 Subject: [PATCH] sidemenu: remove link account item if account was linked --- Classes/AssistantLinkView.m | 1 + Classes/SideMenuView.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/AssistantLinkView.m b/Classes/AssistantLinkView.m index d0093b185..e588829a6 100644 --- a/Classes/AssistantLinkView.m +++ b/Classes/AssistantLinkView.m @@ -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]; diff --git a/Classes/SideMenuView.m b/Classes/SideMenuView.m index 5034824b5..f898c9e60 100644 --- a/Classes/SideMenuView.m +++ b/Classes/SideMenuView.m @@ -28,7 +28,7 @@ } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; - + [_sideMenuTableViewController viewWillAppear:animated]; [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(registrationUpdateEvent:) name:kLinphoneRegistrationUpdate