Media, avatars, direct media; fix reactions/replies; MUC typing #1
Loading…
Reference in a new issue
No description provided.
Delete branch "skunky/media-avatars-reactions-typing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix Matrix->XMPP media (unsupported format), add direct media both ways, avatars both directions (vCard/PEP), fix reaction/reply target resolution (MUC-rewritten ids + stanza-id priority) and bridge MUC typing to Matrix.
XMPP -> Matrix: - Fetch ghost avatars from XEP-0084 (PEP user avatar) with a XEP-0054 vCard photo fallback, deduplicated through an in-memory cache keyed by photo hash; failed lookups are retried only after a TTL so users without avatars do not generate per-message IQs. - Skip profile lookups for the bridge's own bot and puppet JIDs in component mode (querying them would hit the bridge itself). - Expose MUC room vCard photos as the portal room avatar (adopted rooms keep their existing behavior of preserving Matrix-side identity). Matrix -> XMPP (component mode): - New vCard responder: the component answers XEP-0054 vCard queries for its own bot JID and every puppet JID, returning the Matrix display name and avatar (downloaded via the bot intent, base64 BINVAL). - Puppet profiles are resolved from the portal member lists (the same source the puppet nicks come from) and cached for an hour; the bot vCard carries the bridge display name. - Advertise photo hashes via XEP-0153 vcard-temp❌update presence after puppet joins/rejoins and announce the bot's empty photo, so clients re-fetch vCards when avatars change. - Advertise vcard-temp and vcard-update in disco#info. In client mode Matrix -> XMPP avatars are intentionally not available: the XMPP server owns account vCards and the bridge cannot speak for other users.