mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
32 lines
1.1 KiB
Swift
32 lines
1.1 KiB
Swift
//
|
|
// 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
|
|
// BWI #7954 use bwi text for call event
|
|
statusText = BWIL10n.bwiCallEventNotSupported
|
|
// BWI #7954 END
|
|
bottomContentView = nil // Expands the size of the status stack.
|
|
}
|
|
}
|