Ignore notification (#11076)

This commit is contained in:
HarukiToreda
2026-07-20 18:36:36 -05:00
committed by GitHub
co-authored by GitHub
parent 51019b14f4
commit 09de848fbe
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -17,6 +17,7 @@
#include "graphics/emotes.h"
#include "main.h"
#include "meshUtils.h"
#include "modules/CannedMessageModule.h"
#include <string>
#include <vector>
@@ -1073,6 +1074,7 @@ void handleNewMessage(OLEDDisplay *display, const StoredMessage &sm, const mesht
{
if (packet.from != 0) {
hasUnreadMessage = true;
const bool suppressBanner = cannedMessageModule && cannedMessageModule->isFreeTextActive();
// Determine if message belongs to a muted channel
bool isChannelMuted = false;
@@ -1163,11 +1165,13 @@ void handleNewMessage(OLEDDisplay *display, const StoredMessage &sm, const mesht
// Shorter banner if already in a conversation (Channel or Direct)
bool inThread = (getThreadMode() != ThreadMode::ALL);
if (shouldWakeOnReceivedMessage()) {
if (!suppressBanner && shouldWakeOnReceivedMessage()) {
screen->setOn(true);
}
screen->showSimpleBanner(banner, inThread ? 1000 : 3000);
if (!suppressBanner) {
screen->showSimpleBanner(banner, inThread ? 1000 : 3000);
}
}
// Always focus into the correct conversation thread when a message with real text arrives