Merge pull request #4003 from vector-im/element_4001

The Invite cell behaviour is not driven by `MXRoom.isDirect` property…
This commit is contained in:
Gil Eluard 2021-02-09 10:48:00 +01:00 committed by GitHub
commit 63f9425ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View file

@ -19,11 +19,6 @@ import Foundation
extension RecentsViewController {
@objc func canShowRoomPreview(for room: MXRoom) -> Bool {
// Do not show room preview if room is not direct
guard room.isDirect else {
return false
}
let membershipTransitionState = room.summary.membershipTransitionState
// NOTE: For the moment do not offer the possibility to show room preview when invitation action is in progress

View file

@ -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