Change method parameter

This commit is contained in:
ismailgulek 2021-09-22 11:43:07 +03:00
parent c71386a2ba
commit d50c6f300c
No known key found for this signature in database
GPG key ID: E96336D42D9470A9
2 changed files with 4 additions and 3 deletions

View file

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

View file

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