BubbleRoomTimelineCellDecorator: Fix CGFloat type issues.

This commit is contained in:
SBiOSoftWhare
2022-01-18 18:25:48 +01:00
parent ea6690b8ee
commit 8a6e992aaa
2 changed files with 2 additions and 3 deletions
@@ -164,7 +164,6 @@ class BubbleRoomCellLayoutUpdater: RoomCellLayoutUpdaterProtocol {
return nil
}
let bubbleHeight: CGFloat
let bottomMargin: CGFloat = 4.0
@@ -92,7 +92,7 @@ class BubbleRoomTimelineCellDecorator: PlainRoomTimelineCellDecorator {
reactionsView.alignment = .right
// TODO: Use constants
var outgointLeftMargin = 80.0
var outgointLeftMargin: CGFloat = 80.0
if cellData.containsBubbleComponentWithEncryptionBadge {
outgointLeftMargin += RoomBubbleCellLayout.encryptedContentLeftMargin
@@ -156,7 +156,7 @@ class BubbleRoomTimelineCellDecorator: PlainRoomTimelineCellDecorator {
if cellData.isSenderCurrentUser {
// TODO: Use constants
let rightMargin = 34.0
let rightMargin: CGFloat = 34.0
leadingOrTrailingConstraint = urlPreviewView.trailingAnchor.constraint(equalTo: cellContentView.trailingAnchor, constant: -rightMargin)
} else {