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

Respecting Quite Hours in Windows.

Also closing current chat on window close or passcode lock.
This commit is contained in:
John Preston
2016-10-17 13:55:17 +03:00
parent cf247384d3
commit 0902741b85
16 changed files with 121 additions and 56 deletions

View File

@@ -43,6 +43,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
#include "observer_peer.h"
#include "window/chat_background.h"
#include "window/notifications_manager.h"
#include "platform/platform_notifications_manager.h"
namespace {
App::LaunchState _launchState = App::Launched;
@@ -2399,7 +2400,9 @@ namespace {
}
void playSound() {
if (Global::SoundNotify() && !psSkipAudioNotify()) audioPlayNotify();
if (Global::SoundNotify() && !Platform::Notifications::skipAudio()) {
audioPlayNotify();
}
}
void checkImageCacheSize() {