Update location bubble cells.

This commit is contained in:
SBiOSoftWhare
2022-02-07 19:57:50 +01:00
parent ef0a1aec06
commit 757ebde672
2 changed files with 8 additions and 9 deletions
@@ -16,7 +16,7 @@
import Foundation
class LocationIncomingBubbleCell: LocationBubbleCell {
class LocationIncomingBubbleCell: LocationBubbleCell, BubbleIncomingRoomCellProtocol {
override func setupViews() {
super.setupViews()
@@ -16,18 +16,17 @@
import Foundation
class LocationOutgoingWithoutSenderInfoBubbleCell: LocationBubbleCell {
class LocationOutgoingWithoutSenderInfoBubbleCell: LocationBubbleCell, BubbleOutgoingRoomCellProtocol {
override func setupViews() {
super.setupViews()
bubbleCellContentView?.showSenderInfo = false
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = BubbleRoomCellLayoutConstants.outgoingBubbleBackgroundMargins.right
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = BubbleRoomCellLayoutConstants.outgoingBubbleBackgroundMargins.left
// TODO: Use constants
// Same as outgoing message
let rightMargin: CGFloat = 34.0
let leftMargin: CGFloat = 80.0
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = rightMargin
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = leftMargin
self.setupBubbleDecorations()
}
}