The keyboard Done button acts as a cancelation of the invitation process.
Fixed the plus icon that was unexpectedly displayed when trying to remove a member
This commit is contained in:
manuroe
2016-03-25 09:18:54 +01:00
parent 0ebedaff57
commit ea7f0f24bd
@@ -556,10 +556,12 @@
if (!participantCell)
{
participantCell = [[ContactTableViewCell alloc] init];
// do not show the custom accessory view
participantCell.showCustomAccessoryView = NO;
}
// Reset the custom accessory view
participantCell.showCustomAccessoryView = NO;
[participantCell.customAccessoryView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
participantCell.mxRoom = self.mxRoom;
Contact *contact = nil;
@@ -1187,9 +1189,8 @@
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
{
// "Done" key has been pressed
self.isAddParticipantSearchBarEditing = NO;
[searchBar resignFirstResponder];
// "Done" key has been pressed. Cancel the invitation process
[self searchBarCancelButtonClicked:searchBar];
}
- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar