mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Fix force_update_presence
This commit is contained in:
parent
41d65f8fe2
commit
c7750689e8
@ -1741,8 +1741,8 @@ handle_info({route_xmlstreamelement, El}, _StateName, StateData) ->
|
||||
{next_state, NStateName, NStateData, _Timeout} =
|
||||
session_established({xmlstreamelement, El}, StateData),
|
||||
fsm_next_state(NStateName, NStateData);
|
||||
handle_info({force_update_presence, LUser}, StateName,
|
||||
#state{user = LUser, server = LServer} = StateData) ->
|
||||
handle_info({force_update_presence, LUser, LServer}, StateName,
|
||||
#state{jid = #jid{luser = LUser, lserver = LServer}} = StateData) ->
|
||||
NewStateData = case StateData#state.pres_last of
|
||||
#xmlel{name = <<"presence">>} ->
|
||||
PresenceEl =
|
||||
|
@ -741,7 +741,7 @@ force_update_presence({LUser, LServer}) ->
|
||||
Mod = get_sm_backend(),
|
||||
Ss = Mod:get_sessions(LUser, LServer),
|
||||
lists:foreach(fun (#session{sid = {_, Pid}}) ->
|
||||
Pid ! {force_update_presence, LUser}
|
||||
Pid ! {force_update_presence, LUser, LServer}
|
||||
end,
|
||||
Ss).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user