Fixed display of most of simple toasts in corresponding window.

This commit is contained in:
23rd
2022-06-14 12:48:25 +03:00
parent 29910cd1f7
commit 629574685e
27 changed files with 179 additions and 79 deletions
@@ -525,7 +525,9 @@ void SessionNavigation::showRepliesForMessage(
_showingRepliesRequestId = 0;
if (error.type() == u"CHANNEL_PRIVATE"_q
|| error.type() == u"USER_BANNED_IN_CHANNEL"_q) {
Ui::Toast::Show(tr::lng_group_not_accessible(tr::now));
Ui::Toast::Show(
Show(this).toastParent(),
tr::lng_group_not_accessible(tr::now));
}
}).send();
}