diff plugins/muc/vcard.lib.lua @ 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 31f8fd2bcab9
children 758dd39c2808
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)