FileWithoutThumbnailBaseBubbleCell: Update attributed text usage.

This commit is contained in:
SBiOSoftWhare 2022-02-09 16:32:58 +01:00
parent f60c9d7a03
commit c7c0519e76

View file

@ -22,12 +22,8 @@ class FileWithoutThumbnailBaseBubbleCell: SizableBaseBubbleCell, BubbleCellReact
override func render(_ cellData: MXKCellData!) { override func render(_ cellData: MXKCellData!) {
super.render(cellData) super.render(cellData)
guard let data = cellData as? RoomBubbleCellData else { self.fileAttachementView?.titleLabel.attributedText = self.suitableAttributedTextMessage
return
}
self.fileAttachementView?.titleLabel.attributedText = data.attributedTextMessage
self.update(theme: ThemeService.shared().theme) self.update(theme: ThemeService.shared().theme)
} }