mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2025-03-05 00:40:18 +01:00
Fix deleting historical messages of chats that won't be bridged
This commit is contained in:
parent
60496e5976
commit
68b2d663ac
1 changed files with 2 additions and 4 deletions
|
@ -309,9 +309,7 @@ func (hsq *HistorySyncQuery) DeleteAllMessages(userID id.UserID) error {
|
|||
func (hsq *HistorySyncQuery) DeleteAllMessagesForPortal(userID id.UserID, portalKey PortalKey) error {
|
||||
_, err := hsq.db.Exec(`
|
||||
DELETE FROM history_sync_message
|
||||
WHERE user_mxid=$1
|
||||
AND portal_jid=$2
|
||||
AND portal_receiver=$3
|
||||
`, userID, portalKey.JID, portalKey.Receiver)
|
||||
WHERE user_mxid=$1 AND conversation_id=$2
|
||||
`, userID, portalKey.JID)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue