Skip to content

Commit

Permalink
legacymigrate: ignore invalid disappearing_message rows
Browse files Browse the repository at this point in the history
[skip cd]
  • Loading branch information
tulir committed Aug 7, 2024
1 parent b21e657 commit 9a1d385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/mautrix-signal/legacymigrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ SELECT
'after_read', -- type
expiration_seconds * 1000000000, -- timer
CASE WHEN expiration_ts IS NOT NULL THEN expiration_ts * 1000000000 END -- disappear_at
FROM disappearing_message_old;
FROM disappearing_message_old
WHERE expiration_ts < 9000000000;

INSERT INTO reaction (
bridge_id, message_id, message_part_id, sender_id, emoji_id, emoji,
Expand Down

0 comments on commit 9a1d385

Please sign in to comment.