2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Request, show and require accept for updated ToS.

This commit is contained in:
John Preston
2018-06-03 16:30:40 +03:00
parent c85fd368fe
commit 9ebeddbed8
37 changed files with 898 additions and 485 deletions

View File

@@ -872,7 +872,7 @@ void MainWidget::noHider(HistoryHider *destroyed) {
}
void MainWidget::hiderLayer(object_ptr<HistoryHider> h) {
if (App::passcoded()) {
if (Messenger::Instance().locked()) {
return;
}
@@ -2082,7 +2082,7 @@ void MainWidget::ui_showPeerHistory(
auto animatedShow = [&] {
if (_a_show.animating()
|| App::passcoded()
|| Messenger::Instance().locked()
|| (params.animated == anim::type::instant)) {
return false;
}
@@ -2411,7 +2411,7 @@ void MainWidget::showNewSection(
auto animatedShow = [&] {
if (_a_show.animating()
|| App::passcoded()
|| Messenger::Instance().locked()
|| (params.animated == anim::type::instant)
|| memento.instant()) {
return false;