Mercurial > prosody-hg
diff plugins/muc/vcard.lib.lua @ 13944:5365227852ce 13.0
mod_muc: Send the room avatar hash each time an occupant starts a new session
Instead of just on join.
This fixes the issue of missing room avatars in multi-client setups
when the user adds a new client.
Fixes #1964
| author | lissine <lissine@ellini.org> |
|---|---|
| date | Tue, 09 Sep 2025 00:39:41 +0100 |
| parents | 758dd39c2808 |
| children |
line wrap: on
line diff
--- a/plugins/muc/vcard.lib.lua Mon Sep 08 15:01:50 2025 +0200 +++ b/plugins/muc/vcard.lib.lua Tue Sep 09 00:39:41 2025 +0100 @@ -62,7 +62,7 @@ end, 10); if advertise_hashes ~= "none" then - module:hook("muc-occupant-joined", function (event) + module:hook("muc-occupant-session-new", function (event) send_avatar_hash(event.room, event.stanza.attr.from); end); module:hook("vcard-updated", function (event)
