aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVyache <slawutich@mail.ru>2019-08-23 09:32:58 +0300
committerVyache <slawutich@mail.ru>2019-08-23 09:32:58 +0300
commitc0f8e5d7c08395907d103602d78f56bc7c06ea3c (patch)
treebb04a09135967163f3d74f9bec6de7eec06fceb9 /src
parentUse select fields to input host in WebAdmin Backup (#3000) (diff)
Custom exit message is not broadcast
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc_room.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl
index 0dfd078a5..808b8a246 100644
--- a/src/mod_muc_room.erl
+++ b/src/mod_muc_room.erl
@@ -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,