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
1 changed files with 1 additions and 0 deletions

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(