mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
Rename BubbleCellReactionsDisplayable to RoomCellReactionsDisplayable.
This commit is contained in:
@@ -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()
|
||||
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
class FileWithoutThumbnailBaseBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplayable {
|
||||
class FileWithoutThumbnailBaseBubbleCell: SizableBaseBubbleCell, RoomCellReactionsDisplayable {
|
||||
|
||||
weak var fileAttachementView: FileWithoutThumbnailCellContentView?
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
class TextMessageBaseBubbleCell: SizableBaseBubbleCell, RoomCellURLPreviewDisplayable, BubbleCellReactionsDisplayable, BubbleCellThreadSummaryDisplayable, BubbleCellReadReceiptsDisplayable {
|
||||
class TextMessageBaseBubbleCell: SizableBaseBubbleCell, RoomCellURLPreviewDisplayable, RoomCellReactionsDisplayable, BubbleCellThreadSummaryDisplayable, BubbleCellReadReceiptsDisplayable {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
|
||||
+1
-1
@@ -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?
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user