Fix for device connect/disconnect notification. #3177

This commit is contained in:
Ylian Saint-Hilaire 2021-10-07 19:05:12 -07:00
parent 0e6a2266e3
commit e139e3db86

View File

@ -3210,9 +3210,7 @@
// Per-group notification settings
if (message.event.meshid && userinfo.links && userinfo.links[message.event.meshid] && userinfo.links[message.event.meshid].notify) {
n &= userinfo.links[message.event.meshid].notify;
} else {
n = 0;
n |= userinfo.links[message.event.meshid].notify;
}
// Show the notification