Bubble background fixes

This commit is contained in:
Ali
2021-05-28 02:52:13 +04:00
parent 8cdf69e1e9
commit 66e6f987fe
5 changed files with 21 additions and 8 deletions

View File

@@ -1400,8 +1400,10 @@ class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewItemNode
var backgroundHiding: ChatMessageBubbleContentBackgroundHiding?
var hasSolidWallpaper = false
switch item.presentationData.theme.wallpaper {
case .color, .gradient:
case .color:
hasSolidWallpaper = true
case let .gradient(colors, _):
hasSolidWallpaper = colors.count <= 2
default:
break
}