Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Zephyr bridging to existing rooms #6

Open
gabrc52 opened this issue Aug 2, 2023 · 2 comments
Open

Add Zephyr bridging to existing rooms #6

gabrc52 opened this issue Aug 2, 2023 · 2 comments

Comments

@gabrc52
Copy link
Collaborator

gabrc52 commented Aug 2, 2023

There doesn't seem to be a straightforward to add Zephyr bridging to existing rooms:

  1. (Workaround) Disable the app service on the homeserver's settings, then add the CANONICAL alias to the rooms you wish to link to Zephyr, then re-enable the app service. (Or maybe it's just Element not letting you, since it checks if aliases are available before creating them.). But then due to it trying to read the room state using the main appservice token and not a ghost, it fails to find what room it is, so you need to add the bot and join it so it can read the state. Looks like it's done? No! you need to manually subscribe the other half by zwriting daemon/matrix.mit.edu an add class instance * or editing zephyr.subs and restarting that half of the bridge.

  2. We could break the convention that class names and instance names have a specific format and add a config flag to override the room for specific pairs of classes and instances

  3. (Better) We could do 1, but in a way that both aliases are kept, so the code should be modified so it doesn't just read Matrix canonical aliases. So the room could have 2 aliases, one that follows our convention and one that doesn't.

@gabrc52
Copy link
Collaborator Author

gabrc52 commented Aug 2, 2023

Yeah uh it should be more like 1) add the bot, 2) send a command, 3) done

@gabrc52
Copy link
Collaborator Author

gabrc52 commented Oct 7, 2023

Oh and you forgot that you have to invite and join the bot 😭

edit: actually the matrix homeserver might push events to the appservice even without the account in the room, unsure, would have to experimentally verify or read the spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant