From bcd3d463cd61841b3ed64cb06bba1d15f1f4e2ae Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 21 Nov 2016 14:47:04 +0100 Subject: [PATCH] reload contactsListTableView when presence updated to have an up to date list --- Classes/LinphoneUI/UIContactCell.m | 12 ++++++++++-- Resources/assistant_linphone_create.rc | 2 +- Resources/assistant_linphone_existing.rc | 2 +- linphone-Info.plist | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Classes/LinphoneUI/UIContactCell.m b/Classes/LinphoneUI/UIContactCell.m index 35bbb584a..9fcb571b0 100644 --- a/Classes/LinphoneUI/UIContactCell.m +++ b/Classes/LinphoneUI/UIContactCell.m @@ -18,9 +18,10 @@ */ #import "UIContactCell.h" -#import "Utils.h" +#import "ContactsListTableView.h" #import "FastAddressBook.h" #import "UILabel+Boldify.h" +#import "Utils.h" @implementation UIContactCell @@ -67,7 +68,14 @@ return; } } - [self setContact:_contact]; + id view = [self superview]; + + while (view && [view isKindOfClass:[UITableView class]] == NO) { + view = [view superview]; + } + + UITableView *tableView = (UITableView *)view; + [(ContactsListTableView *)tableView.dataSource loadData]; } #pragma mark - Property Functions diff --git a/Resources/assistant_linphone_create.rc b/Resources/assistant_linphone_create.rc index a3fe0f56d..c5404c457 100644 --- a/Resources/assistant_linphone_create.rc +++ b/Resources/assistant_linphone_create.rc @@ -16,7 +16,7 @@
- sip:rls@sip.linphone.org + sips:rls@sip.linphone.org
diff --git a/Resources/assistant_linphone_existing.rc b/Resources/assistant_linphone_existing.rc index 7aa99628f..068d27123 100644 --- a/Resources/assistant_linphone_existing.rc +++ b/Resources/assistant_linphone_existing.rc @@ -16,7 +16,7 @@
- sip:rls@sip.linphone.org + sips:rls@sip.linphone.org
diff --git a/linphone-Info.plist b/linphone-Info.plist index 5ee695c93..6c2df2db8 100644 --- a/linphone-Info.plist +++ b/linphone-Info.plist @@ -53,7 +53,7 @@ CFBundleVersion - 1 + 5 ITSAppUsesNonExemptEncryption ITSEncryptionExportComplianceCode