mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
Prepare #904: Improve the people invite screens
- Rename `ContactPickerViewController` with `HomePeopleSearchViewController`. - Define a basic view controller class `ContactsTableViewController` to display/filter a contacts list. - Make `StartChatViewController` inherit of this new class `ContactsTableViewController` to handle contact invite.
This commit is contained in:
@@ -69,9 +69,6 @@
|
||||
|
||||
// Observe kAppDelegateDidTapStatusBarNotification to handle tap on clock status bar.
|
||||
id kAppDelegateDidTapStatusBarNotificationObserver;
|
||||
|
||||
// Observe kMXKContactManagerDidUpdateLocalContactMatrixIDsNotification to refresh the search result on new matrix enabled contact.
|
||||
id kMXKContactManagerDidUpdateLocalContactMatrixIDsNotificationObserver;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -423,21 +420,6 @@
|
||||
{
|
||||
_isAddParticipantSearchBarEditing = isAddParticipantsSearchBarEditing;
|
||||
|
||||
if (isAddParticipantsSearchBarEditing)
|
||||
{
|
||||
kMXKContactManagerDidUpdateLocalContactMatrixIDsNotificationObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kMXKContactManagerDidUpdateLocalContactMatrixIDsNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
|
||||
|
||||
// Refresh search result display.
|
||||
[self.tableView reloadData];
|
||||
|
||||
}];
|
||||
}
|
||||
else if (kMXKContactManagerDidUpdateLocalContactMatrixIDsNotificationObserver)
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:kMXKContactManagerDidUpdateLocalContactMatrixIDsNotificationObserver];
|
||||
kMXKContactManagerDidUpdateLocalContactMatrixIDsNotificationObserver = nil;
|
||||
}
|
||||
|
||||
// Switch the display between search result and participants list
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user