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:
parent
6575f899b6
commit
80188d3a52
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user