add_invite_rooms_section

fix some UI issues.
This commit is contained in:
yannick
2015-12-10 10:16:22 +01:00
parent 09567f1c29
commit 6c9784e40a
3 changed files with 14 additions and 0 deletions
@@ -110,6 +110,15 @@
}
}
- (void)didMXSessionInviteRoomUpdate:(NSNotification *)notif
{
MXSession *mxSession = notif.object;
if (mxSession == self.mxSession)
{
[self.delegate dataSource:self didCellChange:nil];
}
}
#pragma mark - UITableViewDataSource
/**
@@ -705,6 +705,9 @@ static NSMutableDictionary* backgroundByImageNameDict;
// do not hide the searchBar until the view controller disappear
// on tablets / iphone 6+, the user could expect to search again while looking at a room
[self.recentsSearchBar resignFirstResponder];
// hide the selection
[tableView deselectRowAtIndexPath:indexPath animated:NO];
}
@@ -45,6 +45,8 @@
[self.rightButton setTitle:NSLocalizedStringFromTable(@"reject", @"Vector", nil) forState:UIControlStateNormal];
[self.rightButton setTitle:NSLocalizedStringFromTable(@"reject", @"Vector", nil) forState:UIControlStateHighlighted];
[self.rightButton addTarget:self action:@selector(onRejectedPressed:) forControlEvents:UIControlEventTouchUpInside];
self.selectionStyle = UITableViewCellSelectionStyleNone;
}
- (void)onRejectedPressed:(id)sender