Skip to content

Commit

Permalink
legacymigrate: ignore messages/reactions from lid users
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 10, 2024
1 parent 55577f1 commit 7c011d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/mautrix-whatsapp/legacymigrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ DELETE FROM message_old WHERE timestamp<0;
-- only: sqlite for next 2 lines
DELETE FROM message_old WHERE rowid IN (SELECT rowid FROM pragma_foreign_key_check('message_old'));
DELETE FROM reaction_old WHERE rowid IN (SELECT rowid FROM pragma_foreign_key_check('reaction_old'));
DELETE FROM message_old WHERE sender LIKE '%@lid';
DELETE FROM reaction_old WHERE sender LIKE '%@lid';

INSERT INTO message (
bridge_id, id, part_id, mxid, room_id, room_receiver, sender_id, sender_mxid, timestamp, edit_count, metadata
Expand Down

0 comments on commit 7c011d4

Please sign in to comment.