mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
Do not reply to hidden messages
Especially with read receipts, it is wrong, because they are never encrypted and their Message-IDs are not known to other users in a group.
This commit is contained in:
committed by
link2xt
parent
a586a1d525
commit
2dbb1bbbea
@@ -385,7 +385,7 @@ impl ChatId {
|
||||
let sql = &context.sql;
|
||||
let query = format!(
|
||||
"SELECT {} \
|
||||
FROM msgs WHERE chat_id=? AND state NOT IN (?, ?, ?, ?) \
|
||||
FROM msgs WHERE chat_id=? AND state NOT IN (?, ?, ?, ?) AND NOT hidden \
|
||||
ORDER BY timestamp DESC, id DESC \
|
||||
LIMIT 1;",
|
||||
fields
|
||||
|
||||
Reference in New Issue
Block a user