mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
MUC: Don't inform people about the avatar hash when there is none
This commit is contained in:
parent
b4e8a8c6c4
commit
d6f8c4fe18
1 changed files with 1 additions and 0 deletions
|
@ -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" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue