diff --git a/Vector/Model/RoomList/RecentsDataSource.m b/Vector/Model/RoomList/RecentsDataSource.m index 3c65f375d..e3e1f7e8f 100644 --- a/Vector/Model/RoomList/RecentsDataSource.m +++ b/Vector/Model/RoomList/RecentsDataSource.m @@ -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 /** diff --git a/Vector/ViewController/RecentsViewController.m b/Vector/ViewController/RecentsViewController.m index 38827c49a..0047be7d7 100644 --- a/Vector/ViewController/RecentsViewController.m +++ b/Vector/ViewController/RecentsViewController.m @@ -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]; } diff --git a/Vector/Views/RoomList/InviteRecentTableViewCell.m b/Vector/Views/RoomList/InviteRecentTableViewCell.m index 905dc103e..441b1273c 100644 --- a/Vector/Views/RoomList/InviteRecentTableViewCell.m +++ b/Vector/Views/RoomList/InviteRecentTableViewCell.m @@ -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