mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Detach ComposeControls from SessionController.
This commit is contained in:
@@ -243,7 +243,7 @@ void TermsBox::prepare() {
|
||||
st::termsPadding),
|
||||
0,
|
||||
age ? age->height() : 0);
|
||||
const auto toastParent = Ui::BoxShow(this).toastParent();
|
||||
const auto show = uiShow();
|
||||
content->entity()->setClickHandlerFilter([=](
|
||||
const ClickHandlerPtr &handler,
|
||||
Qt::MouseButton button) {
|
||||
@@ -252,8 +252,7 @@ void TermsBox::prepare() {
|
||||
: QString();
|
||||
if (TextUtilities::RegExpMention().match(link).hasMatch()) {
|
||||
_lastClickedMention = link;
|
||||
Ui::Toast::Show(
|
||||
toastParent,
|
||||
show->showToast(
|
||||
tr::lng_terms_agree_to_proceed(tr::now, lt_bot, link));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user