From 0057e7f3bb4b5c4c4ca6100e5d18917fc90e79c3 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 1 Jun 2017 13:36:54 +0200 Subject: [PATCH] reload History view even if it's displayed --- Classes/HistoryListTableView.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/HistoryListTableView.m b/Classes/HistoryListTableView.m index 92668291f..14ac6633c 100644 --- a/Classes/HistoryListTableView.m +++ b/Classes/HistoryListTableView.m @@ -58,6 +58,11 @@ name:kLinphoneAddressBookUpdate object:nil]; + [NSNotificationCenter.defaultCenter addObserver:self + selector:@selector(loadData) + name:kLinphoneCallUpdate + object:nil]; + [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(coreUpdateEvent:) name:kLinphoneCoreUpdate @@ -69,8 +74,8 @@ [super viewWillDisappear:animated]; [NSNotificationCenter.defaultCenter removeObserver:self name:kLinphoneAddressBookUpdate object:nil]; - [NSNotificationCenter.defaultCenter removeObserver:self name:kLinphoneCoreUpdate object:nil]; + [NSNotificationCenter.defaultCenter removeObserver:self name:kLinphoneCallUpdate object:nil]; } #pragma mark - Event Functions