Skip to content

Commit

Permalink
Merge pull request #333 from jmlich/huami-3bytes-header
Browse files Browse the repository at this point in the history
Only category CustomHuami should have icon in header
  • Loading branch information
piggz authored Jan 14, 2024
2 parents 1446930 + 5c34e7a commit 2ff6cb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion daemon/src/services/alertnotificationservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 2ff6cb8

Please sign in to comment.