mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various fixes
This commit is contained in:
@@ -132,6 +132,11 @@ public final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContent
|
||||
}
|
||||
}
|
||||
}
|
||||
self.contentNode.activateBadgeAction = { [weak self] in
|
||||
if let strongSelf = self, let item = strongSelf.item {
|
||||
item.controllerInteraction.openAdsInfo()
|
||||
}
|
||||
}
|
||||
self.contentNode.activateAction = { [weak self] in
|
||||
if let strongSelf = self, let item = strongSelf.item {
|
||||
if let _ = item.message.adAttribute {
|
||||
@@ -506,7 +511,9 @@ public final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContent
|
||||
}
|
||||
}
|
||||
|
||||
titleBadge = "what's this?"
|
||||
if adAttribute.canReport {
|
||||
titleBadge = item.presentationData.strings.Message_AdWhatIsThis
|
||||
}
|
||||
|
||||
if let buttonText = adAttribute.buttonText {
|
||||
actionTitle = buttonText.uppercased()
|
||||
|
||||
Reference in New Issue
Block a user