mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user