mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 02:22:44 +02:00
PollBubbleCell: Expose poll view adding method.
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user