I noticed^^
Tbh, I still haven't figured out how my IRC client is supposed to fetch avatars of bridged matrix users now.
Previously I was able to special case bridged matrix users and access their avatars through
/_matrix/client/r0/profile/{name}/avatar_url
/_matrix/media/r0/thumbnail/{server}/{id}/
/_matrix/media/r0/download/{server}/{id}
I believe the bridges should host a proxy (per-bridge) to expose content: https://github.com/matrix-org/matrix-appservice-irc/pull/180...
But does that proxy actually expose avatars/profile pictures? From what I can tell they only proxy attachments.
avatars pictures /are/ just attachments tho?
The bridge only transforms images attached to events to new media proxy links.
If a bridged matrix user joins a channel, as IRC client I see the following information:
justJanne[m][email protected] (@justjanne:matrix.org)
With the mxid I can call /_matrix/client/r0/profile/{name}/avatar_url and get the mxc url. mxc://matrix.org/uQMYcfRtSKFlYYBXLGhuIXzq
In the past that was enough, I could just call /_matrix/media/r0/download/.With authenticated media, I would need to get a URL with a signed JWT from the bridge's media proxy such as
https://matrix.org/snoonet/media/v1/media/download/ARahZwUoMu0BcC8Di6Q3N3lpPAejecpE6OyRcKnsvw3n7pjmP7XVSXG8hYT99knbOtESJ9ODlzqLcdLy8Y2mPs9CeTshGEPwAG1hdHJpeC5vcmcvdVFNWWNmUnRTS0ZsWVlCWExHaHVJWHpx
But what endpoint would I call to get that? From what I can tell there's no way to get the bridge to give me a users' avatar.I'd expect to have an special endpoint such as /snoonet/avatar/{mxid} that'd redirect me to the /snoonet/media/v1/media/download URL.