mod_stream_mgmt: Fix 'if_offline' detection

This commit is contained in:
Holger Weiss 2017-04-25 22:32:03 +02:00
parent 120682ec8b
commit 9cc332d6b3
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ route_unacked_stanzas(#{mgmt_state := MgmtState,
Resend when is_boolean(Resend) ->
Resend;
if_offline ->
case ejabberd_sm:get_user_resources(User, Resource) of
case ejabberd_sm:get_user_resources(User, Server) of
[Resource] ->
%% Same resource opened new session
true;