25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Recover logging of user joining room, lost in 32de9a56 (thanks to elexis1)

This commit is contained in:
Badlop 2018-11-09 13:21:35 +01:00
parent 48594544ed
commit da9bcc3370

View File

@ -1658,6 +1658,7 @@ prepare_room_queue(StateData) ->
-spec update_online_user(jid(), #user{}, state()) -> state().
update_online_user(JID, #user{nick = Nick} = User, StateData) ->
LJID = jid:tolower(JID),
add_to_log(join, Nick, StateData),
Nicks1 = case (?DICT):find(LJID, StateData#state.users) of
{ok, #user{nick = OldNick}} ->
case lists:delete(