-
Notifications
You must be signed in to change notification settings - Fork 12
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
Re-add support for rooms with no canonical alias #57
Comments
There are also room where admins (users who create them) don't set canonical aliases.
In some matrixes e.g. companies that use it as their own internal chat
the people that create channels might not care, don't know or are just
lazy.
I wish that channels that don't have canonical names would get their
name based on the display name.
|
For a real-world example of this being a problem, the official Nix/NixOS matrix channel has use-name |
|
This is telling you the alias is altogether invalid, not that it's non-canonical.
|
Not yet, so it's likely an old misconfiguration that nobody had noticed / complained to us about before. I fwded this to the Nix Matrix discussion channel and someone can maybe look at fixing it. |
I just dropped and readded the main alias, if that helps. |
I think it mysteriously started working before you did that, but for whatever reason, it's working now. As to the actual bug, it does seem to be properly-ish bridging channels without a canonical alias into IRC; the problem is that they show up as Using the display name would cause problems when multiple servers have channels with the same DN, but I think using |
Ok, there's also the fact that if I disconnect and reconnect, only the channels with canonical aliases are reinstated, the rest are not. That's a bit more of a problem. Nor does |
After thinking this over and making some local changes, I wonder if a more general solution might be to decouple "channels joined in matrix" from "channels joined on IRC".
This might also simplify the machinery that tries to figure out when and if to announce rooms when processing the backlog, although it complicates backscroll message processing if we want to be able to sync up the IRC-side client post hoc. This means that noncanonicalized rooms show up in I'm probably going to end up implementing this for my own purposes (and will publish), but it might be useful more generally, unlike a lot of the other changes I'm making. |
For a little while now (since f515c97?), M51 waits for a
canonical_alias
event before sending any message from a room. This means that rooms without one are never shown.Instead it should probably remember somehow which rooms were not announced, and do it at the end of each poll.
However, fixing this bug will have the downside of showing rooms that are unlikely to be interesting on the IRC side:
and if a DM room is not encrypted, then there is a workaround: manually add a canonical alias (which also avoids showing the random room id). So is this really desirable?
The text was updated successfully, but these errors were encountered: