mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
Show Matrix RTC calls as unsupported. (#7862)
This commit is contained in:
@@ -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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user