Open bdelwood opened 6 months ago
I also have this issue… Leftover tokens from mautrix-telegram and mautrix-whatsapp.
Instead of deleting the records, I changed the device ID using the following SQL, and then could successfully log out through the UI:
UPDATE compat_sessions SET device_id = 'TELBR' || md5(random()::text) WHERE device_id = 'Telegram Bridge';
UPDATE compat_sessions SET device_id = 'WAB' || md5(random()::text) WHERE device_id = 'WhatsApp Bridge';
I think this is related to #2033 and/or #2244?
Edit: Hmm seems to not have fully cleaned it up. I still have those sessions show up in Element clients :/
For your information, this issue has been copied over to the Element fork of matrix-authentication-service
: https://github.com/element-hq/matrix-authentication-service/issues/2724
After migrating using
syn2mas
, I got the following error from graphql when looking at the device panel in the user webui:Running
mas-cli manage kill-sessions
led to a similar error:I had some really old sessions, generated by the Mautrix bridges, with device IDs like
Facebook Messenger Bridge
. Dropping the rows with those device IDs incompat_access_tokens
andcompat_sessions
seems to have cleared it up and not broken anything else.