Mercurial > prosody-hg
changeset 13941:f4e16e6265e6 13.0
mod_muc: Remove avatar hash caching
Computing the hash of the room might be a bit expensive, but this cache was
preventing any change from reaching clients, so let’s disable it.
Fixes #1961.
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Mon, 08 Sep 2025 12:19:26 +0200 |
| parents | 5f8a9e50c2fb |
| children | bf49d1136235 758dd39c2808 |
| files | plugins/muc/vcard.lib.lua |
| diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/vcard.lib.lua Tue Sep 02 00:50:25 2025 +0200 +++ b/plugins/muc/vcard.lib.lua Mon Sep 08 12:19:26 2025 +0200 @@ -10,13 +10,8 @@ --luacheck: ignore 113/get_room_from_jid local function get_avatar_hash(room) - if room.avatar_hash then return room.avatar_hash; end - local room_node = jid.split(room.jid); - local hash = mod_vcard.get_avatar_hash(room_node); - room.avatar_hash = hash; - - return hash; + return mod_vcard.get_avatar_hash(room_node); end local function send_avatar_hash(room, to)
