mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Fix cell layout when thread root is a poll
This commit is contained in:
@@ -168,6 +168,10 @@ class BaseBubbleCell: MXKRoomBubbleTableViewCell, BaseBubbleCellType {
|
||||
if let bubbleCellReactionsDisplayable = self as? BubbleCellReactionsDisplayable {
|
||||
bubbleCellReactionsDisplayable.removeReactionsView()
|
||||
}
|
||||
|
||||
if let bubbleCellThreadSummaryDisplayable = self as? BubbleCellThreadSummaryDisplayable {
|
||||
bubbleCellThreadSummaryDisplayable.removeThreadSummaryView()
|
||||
}
|
||||
}
|
||||
|
||||
override func render(_ cellData: MXKCellData!) {
|
||||
@@ -244,6 +248,16 @@ class BaseBubbleCell: MXKRoomBubbleTableViewCell, BaseBubbleCellType {
|
||||
func removeReactionsView() {
|
||||
self.bubbleCellContentView?.removeReactionsView()
|
||||
}
|
||||
|
||||
// MARK: - BubbleCellThreadSummaryDisplayable
|
||||
|
||||
func addThreadSummaryView(_ threadSummaryView: ThreadSummaryView) {
|
||||
self.bubbleCellContentView?.addThreadSummaryView(threadSummaryView)
|
||||
}
|
||||
|
||||
func removeThreadSummaryView() {
|
||||
self.bubbleCellContentView?.removeThreadSummaryView()
|
||||
}
|
||||
|
||||
// Encryption status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user