2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Don't mark messages as read when screen is locked.

This commit is contained in:
John Preston
2021-04-27 12:46:51 +04:00
parent da1168fb00
commit 819ce06dfb
12 changed files with 79 additions and 23 deletions

View File

@@ -578,7 +578,7 @@ void System::updateAll() {
Manager::DisplayOptions Manager::GetNotificationOptions(HistoryItem *item) {
const auto hideEverything = Core::App().passcodeLocked()
|| Global::ScreenIsLocked();
|| Platform::Notifications::HideDetails();
const auto view = Core::App().settings().notifyView();
DisplayOptions result;