25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-08 15:42:29 +01:00

Insert "priority" element in out-of-reception presences

This commit is contained in:
Alexey Shchepin 2010-09-23 16:18:53 +03:00
parent f2cfee11de
commit fd50b2169b

View File

@ -2501,7 +2501,9 @@ change_reception(#state{reception = true} = StateData, false) ->
[{xmlelement, "show", [], [{xmlelement, "show", [],
[{xmlcdata, StateData#state.oor_show}]}, [{xmlcdata, StateData#state.oor_show}]},
{xmlelement, "status", [], {xmlelement, "status", [],
[{xmlcdata, StateData#state.oor_status}]}]}, [{xmlcdata, StateData#state.oor_status}]},
{xmlelement, "priority", [],
[{xmlcdata, "0"}]}]},
update_priority(0, Packet, StateData), update_priority(0, Packet, StateData),
presence_broadcast_to_trusted( presence_broadcast_to_trusted(
StateData, StateData,