diff options
author | Vyache <slawutich@mail.ru> | 2019-08-23 09:32:58 +0300 |
---|---|---|
committer | Vyache <slawutich@mail.ru> | 2019-08-23 09:32:58 +0300 |
commit | c0f8e5d7c08395907d103602d78f56bc7c06ea3c (patch) | |
tree | bb04a09135967163f3d74f9bec6de7eec06fceb9 | |
parent | Use select fields to input host in WebAdmin Backup (#3000) (diff) |
Custom exit message is not broadcast
-rw-r--r-- | src/mod_muc_room.erl | 3 |
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, |