mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Swapped a force-unwrap to an optional unwrap
This commit is contained in:
parent
88f63c1434
commit
990edd20df
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ final class LinkPreviewView : UIView {
|
|||
private lazy var imageViewContainerHeightConstraint = imageView.set(.height, to: 100)
|
||||
|
||||
private lazy var sentLinkPreviewTextColor: UIColor = {
|
||||
let isOutgoing = (viewItem!.interaction.interactionType() == .outgoingMessage)
|
||||
let isOutgoing = (viewItem?.interaction.interactionType() == .outgoingMessage)
|
||||
switch (isOutgoing, AppModeManager.shared.currentAppMode) {
|
||||
case (true, .dark), (false, .light): return .black
|
||||
case (true, .light): return Colors.grey
|
||||
|
|
Loading…
Reference in a new issue