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:11:50 +10:00
parent 6575f899b6
commit 80188d3a52

View File

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