Changeset

13660:31f8fd2bcab9

MUC: Don't inform people about the avatar hash when there is none
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Feb 2025 10:19:36 +0000
parents 13659:5abdcad8c2e0
children 13661:5a7f042fe05d
files plugins/muc/vcard.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/vcard.lib.lua	Fri Feb 07 09:22:52 2025 +0100
+++ b/plugins/muc/vcard.lib.lua	Fri Feb 07 10:19:36 2025 +0000
@@ -21,6 +21,7 @@
 
 local function send_avatar_hash(room, to)
 	local hash = get_avatar_hash(room);
+	if not hash and to then return; end -- Don't announce when no avatar
 
 	local presence_vcard = st.presence({to = to, from = room.jid})
 		:tag("x", { xmlns = "vcard-temp:x:update" })