Fix tagwatcher not filtering correctly in all circumstances

pull/673/head
Michael Zanetti 2021-09-15 13:05:22 +02:00
parent 3147d9974e
commit 6040a3fbff
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,10 @@ void TagWatcher::update()
if (t->tagId() != m_tagId) {
continue;
}
if (t->thingId() != m_thingId && t->ruleId() != m_ruleId) {
if (!m_thingId.isNull() && t->thingId() != m_thingId) {
continue;
}
if (!m_ruleId.isNull() && t->ruleId() != m_ruleId) {
continue;
}
tag = t;