From 5991aef5999bb9a0cf633cbc38578237a8583526 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 25 Jun 2015 10:33:21 +0200 Subject: [PATCH] ChatTester: add test for room creation from contact's phone number --- Classes/ContactsViewController.m | 9 ++++- Classes/LinphoneUI/Base.lproj/UIChatCell.xib | 10 ++--- Classes/LinphoneUI/UIChatCell.m | 42 +++++++++++--------- KifTests/ChatTester.m | 12 ++++++ 4 files changed, 48 insertions(+), 25 deletions(-) diff --git a/Classes/ContactsViewController.m b/Classes/ContactsViewController.m index 3bcafae08..b7137a349 100644 --- a/Classes/ContactsViewController.m +++ b/Classes/ContactsViewController.m @@ -185,6 +185,9 @@ static UICompositeViewDescription *compositeDescription = nil; [self.view addSubview:tableView]; [self update]; + } else { + // if table is already created, simply refresh buttons (selection mode changed, etc.) + [self refreshButtons]; } } @@ -255,7 +258,7 @@ static UICompositeViewDescription *compositeDescription = nil; } } -- (void)update { +- (void)refreshButtons { switch ([ContactSelection getSelectionMode]) { case ContactSelectionModePhone: case ContactSelectionModeMessage: @@ -274,6 +277,10 @@ static UICompositeViewDescription *compositeDescription = nil; allButton.selected = TRUE; linphoneButton.selected = FALSE; } +} + +- (void)update { + [self refreshButtons]; [tableController loadData]; } diff --git a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib index 600a66d1c..47896142a 100644 --- a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib +++ b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib @@ -1,8 +1,8 @@ - + - + @@ -29,7 +29,7 @@ - + @@ -48,7 +48,7 @@ -