Show Matrix RTC calls as unsupported. (#7862)

This commit is contained in:
Doug
2024-11-11 09:22:45 +00:00
committed by GitHub
parent 2681f72a75
commit 411478a4f7
14 changed files with 85 additions and 11 deletions
@@ -0,0 +1,29 @@
//
// Copyright 2021-2024 New Vector Ltd.
//
// SPDX-License-Identifier: AGPL-3.0-only
// Please see LICENSE in the repository root for full details.
//
import UIKit
@objcMembers
class RoomMatrixRTCCallCell: RoomCallBaseCell {
private static var className: String { String(describing: self) }
// MARK: - MXKCellRendering
override func render(_ cellData: MXKCellData!) {
super.render(cellData)
guard let bubbleCellData = cellData as? RoomBubbleCellData else { return }
let roomID = bubbleCellData.roomId
guard let room = bubbleCellData.mxSession.room(withRoomId: roomID) else { return }
room.summary.setRoomAvatarImageIn(innerContentView.avatarImageView)
innerContentView.avatarImageView.defaultBackgroundColor = .clear
innerContentView.callerNameLabel.text = room.summary.displayName
statusText = VectorL10n.callUnsupportedMatrixRtcCall
bottomContentView = nil // Expands the size of the status stack.
}
}