Don't send full JID in 'from' of Roster Push (RFC 6121 section 2.1.6). This is a patch by @badlop in the comments of github issue #367

This commit is contained in:
colm 2015-10-21 23:22:53 +01:00
parent c62bd0c911
commit 92b9fb30e0
1 changed files with 1 additions and 1 deletions

View File

@ -1025,7 +1025,7 @@ push_item(User, Server, Item) ->
children = [item_to_xml(Item)]}]}),
lists:foreach(fun (Resource) ->
JID = jlib:make_jid(User, Server, Resource),
ejabberd_router:route(JID, JID, Stanza)
ejabberd_router:route(jlib:jid_remove_resource(JID), JID, Stanza)
end,
ejabberd_sm:get_user_resources(User, Server)).