aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-02-07 10:19:36 +0000
committerMatthew Wild <mwild1@gmail.com>2025-02-07 10:19:36 +0000
commitd6f8c4fe182cd82c44dc8e1ee350008538eb1272 (patch)
tree60be488754199c35133bd749c8d5749e19c2f25c
parentb4e8a8c6c49c7f6b4131eefa9d10d19d768b5e55 (diff)
downloadprosody-d6f8c4fe182cd82c44dc8e1ee350008538eb1272.tar.gz
prosody-d6f8c4fe182cd82c44dc8e1ee350008538eb1272.zip
MUC: Don't inform people about the avatar hash when there is none
-rw-r--r--plugins/muc/vcard.lib.lua1
1 files changed, 1 insertions, 0 deletions
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" })