2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Add emoji-status disclaimer for unknown peers.

This commit is contained in:
John Preston
2022-09-06 11:20:55 +04:00
parent 400d4b793a
commit f0955f2021
15 changed files with 223 additions and 66 deletions

View File

@@ -460,13 +460,8 @@ void Widget::showTerms() {
Ui::Text::WithEntities),
st::introTermsLabel);
_terms.create(this, std::move(entity));
_terms->entity()->setClickHandlerFilter([=](
const ClickHandlerPtr &handler,
Qt::MouseButton button) {
if (button == Qt::LeftButton) {
showTerms(nullptr);
}
return false;
_terms->entity()->overrideLinkClickHandler([=] {
showTerms(nullptr);
});
updateControlsGeometry();
_terms->hide(anim::type::instant);