mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Fix read receipts on call tiles
This commit is contained in:
@@ -41,6 +41,9 @@ class CallBubbleCellBaseContentView: UIView {
|
||||
@IBOutlet weak var bubbleOverlayContainer: UIView!
|
||||
@IBOutlet weak var bubbleInfoContainerTopConstraint: NSLayoutConstraint!
|
||||
|
||||
@IBOutlet weak var readReceiptsContainerView: UIView!
|
||||
@IBOutlet weak var readReceiptsContentView: UIView!
|
||||
|
||||
@IBOutlet weak var bottomContainerView: UIView!
|
||||
|
||||
var statusText: String? {
|
||||
@@ -52,6 +55,14 @@ class CallBubbleCellBaseContentView: UIView {
|
||||
|
||||
private(set) var theme: Theme = ThemeService.shared().theme
|
||||
|
||||
private var showReadReceipts: Bool {
|
||||
get {
|
||||
return !self.readReceiptsContainerView.isHidden
|
||||
} set {
|
||||
self.readReceiptsContainerView.isHidden = !newValue
|
||||
}
|
||||
}
|
||||
|
||||
func relayoutCallSummary() {
|
||||
if bottomContainerView.subviews.isEmpty {
|
||||
callSummaryHeightConstraint.constant = Constants.callSummaryStandaloneViewHeight
|
||||
@@ -102,3 +113,19 @@ extension CallBubbleCellBaseContentView: Themable {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - BubbleCellReadReceiptsDisplayable
|
||||
|
||||
extension CallBubbleCellBaseContentView: BubbleCellReadReceiptsDisplayable {
|
||||
|
||||
func addReadReceiptsView(_ readReceiptsView: UIView) {
|
||||
self.readReceiptsContentView.vc_removeAllSubviews()
|
||||
self.readReceiptsContentView.vc_addSubViewMatchingParent(readReceiptsView)
|
||||
self.showReadReceipts = true
|
||||
}
|
||||
|
||||
func removeReadReceiptsView() {
|
||||
self.showReadReceipts = false
|
||||
self.readReceiptsContentView.vc_removeAllSubviews()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user