25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Bare JID in 'from' of Roster Push (RFC 6121 section 2.1.6) in mod_admin_extra

This commit is contained in:
root 2016-03-15 10:57:56 +05:00
parent 3fef1a4435
commit 058b3d96bf

View File

@ -1194,7 +1194,7 @@ push_roster_item(LU, LS, R, U, S, Action) ->
ejabberd_sm:route(LJID, LJID, BroadcastEl),
Item = build_roster_item(U, S, Action),
ResIQ = build_iq_roster_push(Item),
ejabberd_router:route(LJID, LJID, ResIQ).
ejabberd_router:route(jlib:jid_remove_resource(LJID), LJID, ResIQ).
build_roster_item(U, S, {add, Nick, Subs, Group}) ->
{xmlel, <<"item">>,