We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd1eaa commit b5b8110Copy full SHA for b5b8110
mautrix/crypto/store/asyncpg/store.py
@@ -319,7 +319,8 @@ async def redact_group_sessions(
319
q = """
320
UPDATE crypto_megolm_inbound_session
321
SET withheld_code=$1, withheld_reason=$2, session=NULL, forwarding_chains=NULL
322
- WHERE (room_id=$3 OR $3='') AND (sender_key=$4 OR $4='') AND session IS NOT NULL AND account_id=$5 AND is_scheduled=false
+ WHERE (room_id=$3 OR $3='') AND (sender_key=$4 OR $4='') AND account_id=$5
323
+ AND session IS NOT NULL AND is_scheduled=false AND received_at IS NOT NULL
324
RETURNING session_id
325
"""
326
rows = await self.db.fetch(
0 commit comments