25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix presence problem after first unavailable (thanks to Christopher Faulet) (EJAB-1466)

This commit is contained in:
Evgeniy Khramtsov 2011-11-09 15:09:02 +10:00
parent 0656377165
commit 944791e888

View File

@ -1785,10 +1785,10 @@ presence_update(From, Packet, StateData) ->
FromUnavail = (StateData#state.pres_last == undefined) or
StateData#state.pres_invis,
?DEBUG("from unavail = ~p~n", [FromUnavail]),
NewStateData = StateData#state{pres_last = Packet,
pres_invis = false,
pres_timestamp = Timestamp},
NewState =
NewStateData = StateData#state{pres_last = Packet,
pres_invis = false,
pres_timestamp = Timestamp},
if
FromUnavail ->
ejabberd_hooks:run(user_available_hook,