The Invite cell behaviour is not driven by MXRoom.isDirect property anymore

This commit is contained in:
Gil Eluard
2021-02-05 10:25:27 +01:00
parent 6e1b3d8024
commit ba9f22c6b5
2 changed files with 1 additions and 10 deletions
@@ -80,11 +80,7 @@ NSString *const kInviteRecentTableViewCellRoomKey = @"kInviteRecentTableViewCell
- (void)onRightButtonPressed:(id)sender
{
MXRoom *room = roomCellData.roomSummary.room;
NSString *actionIdentifier = room.isDirect ? kInviteRecentTableViewCellAcceptButtonPressed : kInviteRecentTableViewCellPreviewButtonPressed;
[self notifyDelegateWithActionIdentifier:actionIdentifier];
[self notifyDelegateWithActionIdentifier:kInviteRecentTableViewCellAcceptButtonPressed];
}
- (void)notifyDelegateWithActionIdentifier:(NSString*)actionIdentifier