mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Fix open webpage story action
This commit is contained in:
parent
f3e989dbfa
commit
13d2dd15df
@ -76,11 +76,15 @@ final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContentNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let webpage = webPageContent {
|
if let webpage = webPageContent {
|
||||||
|
if webpage.story != nil {
|
||||||
|
let _ = item.controllerInteraction.openMessage(item.message, .default)
|
||||||
|
} else {
|
||||||
item.controllerInteraction.openUrl(webpage.url, false, nil, nil)
|
item.controllerInteraction.openUrl(webpage.url, false, nil, nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
self.contentNode.requestUpdateLayout = { [weak self] in
|
self.contentNode.requestUpdateLayout = { [weak self] in
|
||||||
if let strongSelf = self, let item = strongSelf.item {
|
if let strongSelf = self, let item = strongSelf.item {
|
||||||
let _ = item.controllerInteraction.requestMessageUpdate(item.message.id, false)
|
let _ = item.controllerInteraction.requestMessageUpdate(item.message.id, false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user