mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Update ad close button
This commit is contained in:
@@ -65,7 +65,10 @@ public class ChatMessageShareButton: HighlightableButtonNode {
|
||||
|
||||
var updatedIconImage: UIImage?
|
||||
var updatedIconOffset = CGPoint()
|
||||
if case .pinnedMessages = subject {
|
||||
if message.adAttribute != nil {
|
||||
updatedIconImage = PresentationResourcesChat.chatFreeCloseButtonIcon(presentationData.theme.theme, wallpaper: presentationData.theme.wallpaper)
|
||||
updatedIconOffset = CGPoint(x: UIScreenPixel, y: UIScreenPixel)
|
||||
} else if case .pinnedMessages = subject {
|
||||
updatedIconImage = PresentationResourcesChat.chatFreeNavigateButtonIcon(presentationData.theme.theme, wallpaper: presentationData.theme.wallpaper)
|
||||
updatedIconOffset = CGPoint(x: UIScreenPixel, y: 1.0)
|
||||
} else if isReplies {
|
||||
|
||||
Reference in New Issue
Block a user