Fixed an issue where the text on the LinkPreview in dark mode wasn't visible

This commit is contained in:
Morgan Pretty 2022-04-11 10:21:45 +10:00
parent 7256cc6871
commit dbb0cdf0cb
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ final class LinkPreviewView : UIView {
private lazy var sentLinkPreviewTextColor: UIColor = {
let isOutgoing = (viewItem?.interaction.interactionType() == .outgoingMessage)
switch (isOutgoing, AppModeManager.shared.currentAppMode) {
case (true, .dark), (false, .light): return .black
case (false, .light): return .black
case (true, .light): return Colors.grey
default: return .white
}