mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
fix: hide notifications from blocked users
e.g. when in shared group chats with enabled notifications sound still plays, lazy to fix that
This commit is contained in:
parent
b054093899
commit
11abaac7c1
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include <QtGui/QScreen>
|
||||
|
||||
// AyuGram includes
|
||||
#include "ayu/utils/telegram_helpers.h"
|
||||
#include "ayu/features/streamer_mode/streamer_mode.h"
|
||||
|
||||
|
||||
|
@ -251,6 +252,11 @@ void Manager::showNextFromQueue() {
|
|||
auto queued = _queuedNotifications.front();
|
||||
_queuedNotifications.pop_front();
|
||||
|
||||
if (queued.item && isMessageHidden(queued.item)) {
|
||||
--count;
|
||||
continue;
|
||||
}
|
||||
|
||||
subscribeToSession(&queued.history->session());
|
||||
_notifications.push_back(std::make_unique<Notification>(
|
||||
this,
|
||||
|
|
Loading…
Add table
Reference in a new issue