Skip to content

Commit

Permalink
legacymigrate: ignore user portals if user isn't logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 30, 2024
1 parent c2d701e commit 39a0d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mautrix-whatsapp/legacymigrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ SELECT
in_space,
false, -- preferred
last_read_ts * 1000000000 -- last_read TODO check multiplier
FROM user_portal_old;
FROM user_portal_old WHERE EXISTS(SELECT 1 FROM user_login WHERE user_login.user_mxid=user_portal_old.user_mxid);

ALTER TABLE message_old ADD COLUMN combined_id TEXT;
DELETE FROM message_old WHERE sender IS NULL;
Expand Down

0 comments on commit 39a0d71

Please sign in to comment.