[{<<"affiliation">>, SAffiliation},
{<<"role">>, SRole}]
end,
+ Status110 = case JID == Info#user.jid of
+ true ->
+ [#xmlel{name = <<"status">>,
+ attrs = [{<<"code">>, <<"110">>}]
+ }];
+ false ->
+ []
+ end,
Packet1 = #xmlel{name = <<"presence">>,
attrs =
[{<<"type">>,
[{<<"code">>,
<<"303">>}],
children =
- []}]}]},
+ []}|Status110]}]},
Packet2 = xml:append_subtags(Presence,
[#xmlel{name = <<"x">>,
attrs =
ItemAttrs2,
children
=
- []}]}]),
+ []}|Status110]}]),
if SendOldUnavailable ->
ejabberd_router:route(jlib:jid_replace_resource(StateData#state.jid,
OldNick),