From d6f8c4fe182cd82c44dc8e1ee350008538eb1272 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 7 Feb 2025 10:19:36 +0000 Subject: MUC: Don't inform people about the avatar hash when there is none --- plugins/muc/vcard.lib.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/muc/vcard.lib.lua b/plugins/muc/vcard.lib.lua index 81dce5bd..f9f97721 100644 --- a/plugins/muc/vcard.lib.lua +++ b/plugins/muc/vcard.lib.lua @@ -21,6 +21,7 @@ end 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" }) -- cgit v1.2.3