Skip to content

Commit

Permalink
Merge pull request #8 from e2e-tdesktop/dev-dmittrey-fork
Browse files Browse the repository at this point in the history
  • Loading branch information
deevroman authored Nov 7, 2024
2 parents 5e43e12 + 33d8087 commit c427c7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/mainwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,10 @@ void MainWidget::showHistory(
}
return;
} else if (auto peer = session().data().peerLoaded(peerId)) {
if (peer->isEcnrypted()) {
_controller->window().activate();
Core::App().lockByPasscode();
}
if (peer->migrateTo()) {
peer = peer->migrateTo();
peerId = peer->id;
Expand Down
16 changes: 4 additions & 12 deletions Telegram/SourceFiles/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,10 @@ void MainWindow::setupPasscodeLock() {
updateControlsGeometry();

ui_hideSettingsAndLayer(anim::type::instant);
if (_main) {
_main->hide();
}
if (_intro) {
_intro->hide();
}
if (animated) {
_passcodeLock->showAnimated(std::move(oldContentCache));
} else {
_passcodeLock->showFinished();
setInnerFocus();
}

_passcodeLock->showFinished();
setInnerFocus();

if (const auto sessionController = controller().sessionController()) {
sessionController->session().attachWebView().closeAll();
}
Expand Down

0 comments on commit c427c7c

Please sign in to comment.