mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-02 16:37:52 +01:00
Custom exit message is not broadcast
This commit is contained in:
parent
1fd75265d6
commit
c0f8e5d7c0
@ -2418,7 +2418,8 @@ send_new_presence(NJID, Reason, IsInitialPresence, StateData, OldStateData) ->
|
||||
last_presence = Presence0} = UserInfo =
|
||||
maps:get(jid:tolower(LJID), StateData#state.users),
|
||||
{Role1, Presence1} =
|
||||
case presence_broadcast_allowed(NJID, StateData) of
|
||||
case (presence_broadcast_allowed(NJID, StateData) orelse
|
||||
presence_broadcast_allowed(NJID, OldStateData)) of
|
||||
true -> {Role0, Presence0};
|
||||
false -> {none, #presence{type = unavailable}}
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user