-
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
Option to use display name rather than mxid #61
Comments
weechat workaround: bonus to mark replies with a ,: |
Oh nice, that works great. Doesn't help with the nicklist, but it's fine for most day to day chatting. I think fixing the nicklist client-side would require an actual plugin or script; it looks like WC's internal concept of the nicklist doesn't include anything that could function as a display name, so -- at a first guess -- it would entail something like stuffing all the real nicks into a hidden group, then generating visible synthetic nicks based on the display-name. And getting the display name without waiting for them to speak would at least require M51 to put their display name in the gecos, which it looks like it does not do but has a TODO for doing someday. After sleeping on this, I think to get what I want client-side (use display names for nicks and channels, group channels by Space), the minimally intrusive and fragile changes on the server-side would be something like:
And then in weechat:
To make the "group channels by space" part less gruesome, it might prove convenient to add a "single-space" mode to M51, where you give it a space ID (as part of the gecos in ¹ so that, for example, the space "a grand adventure in terrible ideas" just shows up as "[terrible ideas]" |
Whoops, the workaround doesn't work for the relay. Which makes sense, rendering of buffer names is entirely a client-side thing. But it is unfortunate. |
For native Matrix users, the mxid is usually at least somewhat descriptive, but for users bridged in from other protocols the mxid is almost universally useless. For example, any matrix channel that bridges in users from discord is going to have a lot of users that look fine in (say) Element but show up as "discord_1234567890:example.com" in M51.
It looks like M51 sends this in the
draft/display-name
tag, but weechat doesn't support this.I suspect that doing this as a quick hack wouldn't be particularly hard, and I may prototype it locally -- write a mangler that flattens Matrix display names into something IRC can compass, change the
m.room.message
handler andsend_multiline_batch
so that use that instead ofnick2nuh(mxid)
as the sender. Making it an option (not necessarily stateful, it can be a command line flag or envar or so) will be more annoying, making it robust (so that, e.g.,@
- or:
-mentions of the munged name on the IRC side get translated into@
-mentions of the correct mxid matrix-side) will, I think, take it well past "quick hack" status -- but I may accept an inability to reliably@
people if the alternative is not being able to tell who's talking at all, which is the status quo.The text was updated successfully, but these errors were encountered: