From: Shane Synan Date: Fri, 10 Jul 2020 21:50:59 +0000 (-0400) Subject: core: Fix SQL defaults for filtered backlog fetch X-Git-Tag: 0.14-rc1~38 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=68b12b0b035c460c7bab93959004bd83c0b160f2;hp=68b12b0b035c460c7bab93959004bd83c0b160f2;p=quassel.git core: Fix SQL defaults for filtered backlog fetch Modify the SQL queries for *_filtered.sql backlog fetching to allow specifying an invalid type of "0" or "-1" to match any message type. This allows filtering backlog fetching by flag without restricting by type. Also modify the "= 0" check for :flag to "<= 0". This matches the function definitions and fixes specifying "-1" instead of "0". Without this change, specifying "-1" will result in missing messages! Committed separately from the new forward backlog fetching in case issues are found, making reverting easier. ---