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:
AlexeyZavar 2024-04-19 02:18:38 +03:00
parent b054093899
commit 11abaac7c1

View file

@ -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,