mirror of https://github.com/procxx/kepka.git
Open links from bot buttons with regular UrlClickHandler.
Fix render glitch in dialogs widget after search.
This commit is contained in:
parent
80adba61d4
commit
e87c1b6024
|
@ -2214,6 +2214,7 @@ void DialogsWidget::searchReceived(DialogsSearchRequestType type, const MTPmessa
|
||||||
|
|
||||||
_searchRequest = 0;
|
_searchRequest = 0;
|
||||||
onListScroll();
|
onListScroll();
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ void activateBotCommand(const HistoryItem *msg, int row, int col) {
|
||||||
|
|
||||||
case HistoryMessageReplyMarkup::Button::Url: {
|
case HistoryMessageReplyMarkup::Button::Url: {
|
||||||
auto url = QString::fromUtf8(button->data);
|
auto url = QString::fromUtf8(button->data);
|
||||||
HiddenUrlClickHandler(url).onClick(Qt::LeftButton);
|
UrlClickHandler(url).onClick(Qt::LeftButton);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case HistoryMessageReplyMarkup::Button::RequestLocation: {
|
case HistoryMessageReplyMarkup::Button::RequestLocation: {
|
||||||
|
|
|
@ -5794,7 +5794,7 @@ void HistoryWidget::botCallbackDone(BotCallbackInfo info, const MTPmessages_BotC
|
||||||
Ui::Toast::Show(App::wnd(), toast);
|
Ui::Toast::Show(App::wnd(), toast);
|
||||||
}
|
}
|
||||||
} else if (answerData.has_url()) {
|
} else if (answerData.has_url()) {
|
||||||
HiddenUrlClickHandler(qs(answerData.vurl)).onClick(Qt::LeftButton);
|
UrlClickHandler(qs(answerData.vurl)).onClick(Qt::LeftButton);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue