common: Exclude ignored messages in buffer activity
[quassel.git] / src / core / SQL / SQLite / select_buffer_highlightcount.sql
index 33058f8..d394724 100644 (file)
@@ -2,6 +2,7 @@ SELECT COALESCE(t.sum,0)
 FROM
   (SELECT COUNT(*) AS sum FROM backlog
    WHERE bufferid = :bufferid
+     AND flags & 32 = 0
      AND flags & 2 != 0
      AND flags & 1 = 0
      AND messageid > :lastseenmsgid) t;