Don't send read receipts for errored messages

This commit is contained in:
Tulir Asokan 2022-05-18 01:00:23 +03:00
parent e81acef840
commit 8b7abe6f7d

View file

@ -64,7 +64,7 @@ const (
`
getMessagesBetweenQuery = `
SELECT chat_jid, chat_receiver, jid, mxid, sender, timestamp, sent, type, error, broadcast_list_jid FROM message
WHERE chat_jid=$1 AND chat_receiver=$2 AND timestamp>$3 AND timestamp<=$4 AND sent=true ORDER BY timestamp ASC
WHERE chat_jid=$1 AND chat_receiver=$2 AND timestamp>$3 AND timestamp<=$4 AND sent=true AND error='' ORDER BY timestamp ASC
`
)