Room participants: bug fix - user is not able to leave

This commit is contained in:
giomfo
2015-09-11 15:48:07 +02:00
parent 332512773a
commit 1c0f6fc704
@@ -563,7 +563,10 @@
UIButton *actionButton = participantCell.contactAccessoryButton;
actionButton.hidden = NO;
[actionButton setTitle:NSLocalizedStringFromTable(@"leave", @"Vector", nil) forState:UIControlStateNormal];
[actionButton addTarget:self action:@selector(onButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
actionButton.tag = 0;
[actionButton sizeToFit];
participantCell.contactAccessoryViewHeightConstraint.constant = actionButton.frame.size.height;
participantCell.contactAccessoryViewWidthConstraint.constant = actionButtonWidth;
[participantCell needsUpdateConstraints];