aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbadlop <badlop@process-one.net>2019-08-26 13:53:42 +0200
committerGitHub <noreply@github.com>2019-08-26 13:53:42 +0200
commite14f206615c74ccd8826e91420a0834c54c8f971 (patch)
treebb04a09135967163f3d74f9bec6de7eec06fceb9 /src
parentUse select fields to input host in WebAdmin Backup (#3000) (diff)
parentCustom exit message is not broadcast (diff)
Merge pull request #3004 from Slawutich/master
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,