# HG changeset patch # User Link Mauve # Date 1757326766 -7200 # Node ID f4e16e6265e6cd2bb72040cbd7074c742be9b13d # Parent 5f8a9e50c2fb9a54fc8138678f62f5cb2a960b75 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. diff -r 5f8a9e50c2fb -r f4e16e6265e6 plugins/muc/vcard.lib.lua --- 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)