diff --git a/Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/Cells/FileWithoutThumbnail/Common/FileWithoutThumbnailBaseBubbleCell.swift b/Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/Cells/FileWithoutThumbnail/Common/FileWithoutThumbnailBaseBubbleCell.swift index ee6d67798..32dfe9612 100644 --- a/Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/Cells/FileWithoutThumbnail/Common/FileWithoutThumbnailBaseBubbleCell.swift +++ b/Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/Cells/FileWithoutThumbnail/Common/FileWithoutThumbnailBaseBubbleCell.swift @@ -22,12 +22,8 @@ class FileWithoutThumbnailBaseBubbleCell: SizableBaseBubbleCell, BubbleCellReact override func render(_ cellData: MXKCellData!) { super.render(cellData) - - guard let data = cellData as? RoomBubbleCellData else { - return - } - - self.fileAttachementView?.titleLabel.attributedText = data.attributedTextMessage + + self.fileAttachementView?.titleLabel.attributedText = self.suitableAttributedTextMessage self.update(theme: ThemeService.shared().theme) }