From 5c34e7a4b3b397cd736e57c49321f1e4edc25c4e Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Sun, 14 Jan 2024 17:16:08 +0100 Subject: [PATCH] Only category CustomHuami should have icon in header --- daemon/src/services/alertnotificationservice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/src/services/alertnotificationservice.cpp b/daemon/src/services/alertnotificationservice.cpp index 510c7143..49b8bf7b 100644 --- a/daemon/src/services/alertnotificationservice.cpp +++ b/daemon/src/services/alertnotificationservice.cpp @@ -30,7 +30,9 @@ void AlertNotificationService::sendAlert(const QString &sender, const QString &s QByteArray send = QByteArray(1, category) + QByteArray(1, 1); //1 alert - send += QByteArray(1, mapSenderToIcon(sender)); + if (category == 0xfa) { + send += QByteArray(1, icon); + } send += sender.left(32).toUtf8() + QByteArray(1, m_seperatorChar); //Bip needs 0x00 for seperator, others may be different if (!subject.isEmpty()) {