mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +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 sql = &context.sql;
|
||||||
let query = format!(
|
let query = format!(
|
||||||
"SELECT {} \
|
"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 \
|
ORDER BY timestamp DESC, id DESC \
|
||||||
LIMIT 1;",
|
LIMIT 1;",
|
||||||
fields
|
fields
|
||||||
|
|||||||
Reference in New Issue
Block a user