mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-07 04:24:09 +02:00
fix: allow copying inline button links
This commit is contained in:
parent
09083beed0
commit
157039946f
1 changed files with 2 additions and 1 deletions
|
@ -705,7 +705,8 @@ auto ReplyMarkupClickHandler::getUrlButton() const
|
||||||
-> const HistoryMessageMarkupButton* {
|
-> const HistoryMessageMarkupButton* {
|
||||||
if (const auto button = getButton()) {
|
if (const auto button = getButton()) {
|
||||||
using Type = HistoryMessageMarkupButton::Type;
|
using Type = HistoryMessageMarkupButton::Type;
|
||||||
if (button->type == Type::Url || button->type == Type::Auth || button->type == Type::Callback) {
|
if (button->type == Type::Url || button->type == Type::Auth || button->type == Type::Callback ||
|
||||||
|
button->type == Type::WebView || button->type == Type::SimpleWebView) {
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue