PollBubbleCell: Expose poll view adding method.

This commit is contained in:
SBiOSoftWhare
2022-02-03 10:10:56 +01:00
parent c010a9f218
commit e342a7fc5e
@@ -34,10 +34,7 @@ class PollBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplayable {
}
self.event = event
pollView?.removeFromSuperview()
contentView.vc_addSubViewMatchingParent(view)
pollView = view
self.addPollView(view, on: contentView)
}
override func setupViews() {
@@ -56,6 +53,13 @@ class PollBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplayable {
delegate.cell(self, didRecognizeAction: kMXKRoomBubbleCellTapOnContentView, userInfo: [kMXKRoomBubbleCellEventKey: event])
}
func addPollView(_ pollView: UIView, on contentView: UIView) {
self.pollView?.removeFromSuperview()
contentView.vc_addSubViewMatchingParent(pollView)
self.pollView = pollView
}
}
extension PollBubbleCell: BubbleCellThreadSummaryDisplayable {}