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 and send_multiline_batch so that use that instead of nick2nuh(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.
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-nametag, 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.messagehandler andsend_multiline_batchso 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.