fix mute-condition in get_fresh_msgs()

This commit is contained in:
B. Petersen
2021-03-02 22:44:19 +01:00
committed by bjoern
parent 75adbd2c8f
commit 1deaf87b24

View File

@@ -447,7 +447,7 @@ impl Context {
" AND m.chat_id>9",
" AND ct.blocked=0",
" AND c.blocked=0",
" AND NOT(c.muted_until=-1 OR (c.muted_until>0 AND c.muted_until<?))",
" AND NOT(c.muted_until=-1 OR c.muted_until>?)",
" ORDER BY m.timestamp DESC,m.id DESC;"
),
paramsv![MessageState::InFresh, time()],