Don't use bubble highlight on video messages

This commit is contained in:
Ali 2023-10-29 23:06:11 +04:00
parent c29cd1bbba
commit 75359a283d

View File

@ -4699,7 +4699,7 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
if let backgroundType = self.backgroundType { if let backgroundType = self.backgroundType {
let graphics = PresentationResourcesChat.principalGraphics(theme: item.presentationData.theme.theme, wallpaper: item.presentationData.theme.wallpaper, bubbleCorners: item.presentationData.chatBubbleCorners) let graphics = PresentationResourcesChat.principalGraphics(theme: item.presentationData.theme.theme, wallpaper: item.presentationData.theme.wallpaper, bubbleCorners: item.presentationData.chatBubbleCorners)
if self.highlightedState != nil { if self.highlightedState != nil, !(self.backgroundNode.layer.mask is SimpleLayer) {
let backgroundHighlightNode: ChatMessageBackground let backgroundHighlightNode: ChatMessageBackground
if let current = self.backgroundHighlightNode { if let current = self.backgroundHighlightNode {
backgroundHighlightNode = current backgroundHighlightNode = current