mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Change method parameter
This commit is contained in:
parent
c71386a2ba
commit
d50c6f300c
2 changed files with 4 additions and 3 deletions
|
@ -18,8 +18,9 @@ import Foundation
|
|||
|
||||
extension RecentsViewController {
|
||||
|
||||
@objc func canShowRoomPreview(for room: MXRoom) -> Bool {
|
||||
let membershipTransitionState = room.summary.membershipTransitionState
|
||||
@objc
|
||||
func canShowRoomPreview(for summary: MXRoomSummaryProtocol) -> Bool {
|
||||
let membershipTransitionState = summary.membershipTransitionState
|
||||
|
||||
// NOTE: For the moment do not offer the possibility to show room preview when invitation action is in progress
|
||||
|
||||
|
|
|
@ -1452,7 +1452,7 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
|||
[self showSpaceInviteNotAvailable];
|
||||
}
|
||||
// Check if can show preview for the invited room
|
||||
else if ([self canShowRoomPreviewFor:invitedRoom])
|
||||
else if ([self canShowRoomPreviewFor:cellData.roomSummary])
|
||||
{
|
||||
// Display the room preview
|
||||
[self dispayRoomWithRoomId:invitedRoom.roomId inMatrixSession:invitedRoom.mxSession];
|
||||
|
|
Loading…
Reference in a new issue