BugFix: Room member details: only the "start chat" text is clickable, not that whole button area.

https://github.com/vector-im/vector-ios/issues/282
This commit is contained in:
giomfo 2016-04-29 11:45:02 +02:00
parent 11a5fdde0c
commit b3a05776e3

View file

@ -501,6 +501,19 @@
return cell;
}
#pragma mark - TableView delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath
{
UITableViewCell *selectedCell = [tableView cellForRowAtIndexPath:indexPath];
if (selectedCell && [selectedCell isKindOfClass:TableViewCellWithButton.class])
{
TableViewCellWithButton *cell = (TableViewCellWithButton*)selectedCell;
[self onActionButtonPressed:cell.mxkButton];
}
}
#pragma mark - Action
- (void)onActionButtonPressed:(id)sender