Fix open webpage story action

This commit is contained in:
Ali 2023-06-20 14:26:27 +03:00
parent f3e989dbfa
commit 13d2dd15df

View File

@ -76,11 +76,15 @@ final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContentNode {
}
}
if let webpage = webPageContent {
if webpage.story != nil {
let _ = item.controllerInteraction.openMessage(item.message, .default)
} else {
item.controllerInteraction.openUrl(webpage.url, false, nil, nil)
}
}
}
}
}
self.contentNode.requestUpdateLayout = { [weak self] in
if let strongSelf = self, let item = strongSelf.item {
let _ = item.controllerInteraction.requestMessageUpdate(item.message.id, false)