Rename BubbleCellReactionsDisplayable to RoomCellReactionsDisplayable.

This commit is contained in:
SBiOSoftWhare
2022-02-16 10:42:19 +01:00
parent b531af320d
commit 09520f2de3
11 changed files with 12 additions and 12 deletions
@@ -148,7 +148,7 @@ class BaseRoomCell: MXKRoomBubbleTableViewCell, BaseRoomCellProtocol {
bubbleCellReadReceiptsDisplayable.removeReadReceiptsView()
}
if let bubbleCellReactionsDisplayable = self as? BubbleCellReactionsDisplayable {
if let bubbleCellReactionsDisplayable = self as? RoomCellReactionsDisplayable {
bubbleCellReactionsDisplayable.removeReactionsView()
}
@@ -187,7 +187,7 @@ extension RoomCellContentView: BubbleCellReadReceiptsDisplayable {
}
// MARK: - BubbleCellReactionsDisplayable
extension RoomCellContentView: BubbleCellReactionsDisplayable {
extension RoomCellContentView: RoomCellReactionsDisplayable {
func addReactionsView(_ reactionsView: UIView) {
self.reactionsContentView.vc_removeAllSubviews()
@@ -16,8 +16,8 @@
import Foundation
/// `BubbleCellReactionsDisplayable` is a protocol indicating that a cell support displaying reactions.
@objc protocol BubbleCellReactionsDisplayable {
/// `RoomCellReactionsDisplayable` is a protocol indicating that a cell support displaying reactions.
@objc protocol RoomCellReactionsDisplayable {
func addReactionsView(_ reactionsView: UIView)
func removeReactionsView()
}
@@ -124,7 +124,7 @@ class SizableBaseBubbleCell: BaseRoomCell, SizableBaseBubbleCellType {
}
// Add reactions view height if needed
if sizingView is BubbleCellReactionsDisplayable,
if sizingView is RoomCellReactionsDisplayable,
let roomBubbleCellData = cellData as? RoomBubbleCellData,
let bubbleReactionsViewModel = self.reactionsViewModelBuilder.buildForFirstVisibleComponent(of: roomBubbleCellData) {
@@ -93,7 +93,7 @@ class BubbleRoomTimelineCellDecorator: PlainRoomTimelineCellDecorator {
override func addReactionView(_ reactionsView: BubbleReactionsView,
toCell cell: MXKRoomBubbleTableViewCell, cellData: RoomBubbleCellData, contentViewPositionY: CGFloat, upperDecorationView: UIView?) {
if let reactionsDisplayable = cell as? BubbleCellReactionsDisplayable {
if let reactionsDisplayable = cell as? RoomCellReactionsDisplayable {
reactionsDisplayable.addReactionsView(reactionsView)
return
}
@@ -16,7 +16,7 @@
import UIKit
class FileWithoutThumbnailBaseBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplayable {
class FileWithoutThumbnailBaseBubbleCell: SizableBaseBubbleCell, RoomCellReactionsDisplayable {
weak var fileAttachementView: FileWithoutThumbnailCellContentView?
@@ -16,7 +16,7 @@
import UIKit
class TextMessageBaseBubbleCell: SizableBaseBubbleCell, RoomCellURLPreviewDisplayable, BubbleCellReactionsDisplayable, BubbleCellThreadSummaryDisplayable, BubbleCellReadReceiptsDisplayable {
class TextMessageBaseBubbleCell: SizableBaseBubbleCell, RoomCellURLPreviewDisplayable, RoomCellReactionsDisplayable, BubbleCellThreadSummaryDisplayable, BubbleCellReadReceiptsDisplayable {
// MARK: - Properties
@@ -16,7 +16,7 @@
import Foundation
class LocationBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplayable {
class LocationBubbleCell: SizableBaseBubbleCell, RoomCellReactionsDisplayable {
private var locationView: RoomTimelineLocationView!
@@ -16,7 +16,7 @@
import Foundation
class PollBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplayable {
class PollBubbleCell: SizableBaseBubbleCell, RoomCellReactionsDisplayable {
private var pollView: UIView?
private var event: MXEvent?
@@ -16,7 +16,7 @@
import Foundation
class VoiceMessageBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplayable {
class VoiceMessageBubbleCell: SizableBaseBubbleCell, RoomCellReactionsDisplayable {
private(set) var playbackController: VoiceMessagePlaybackController!
@@ -76,7 +76,7 @@ class PlainRoomTimelineCellDecorator: RoomTimelineCellDecorator {
cell.addTemporarySubview(reactionsView)
if let reactionsDisplayable = cell as? BubbleCellReactionsDisplayable {
if let reactionsDisplayable = cell as? RoomCellReactionsDisplayable {
reactionsDisplayable.addReactionsView(reactionsView)
} else {
reactionsView.translatesAutoresizingMaskIntoConstraints = false