From 7c011d490c8fddcf9cf09d1943cf58f5b07691ac Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 10 Oct 2024 13:41:23 +0300 Subject: [PATCH] legacymigrate: ignore messages/reactions from lid users --- cmd/mautrix-whatsapp/legacymigrate.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/mautrix-whatsapp/legacymigrate.sql b/cmd/mautrix-whatsapp/legacymigrate.sql index 73ce9713..e22b0652 100644 --- a/cmd/mautrix-whatsapp/legacymigrate.sql +++ b/cmd/mautrix-whatsapp/legacymigrate.sql @@ -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