24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-10 21:47:01 +02:00

Fix a bug in #xmlel construction: children must be a list.

SVN Revision: 1583
This commit is contained in:
Jean-Sébastien Pédron 2008-09-29 11:30:25 +00:00
parent 12d515a8fe
commit da034b3090
3 changed files with 5 additions and 2 deletions

View File

@ -19,6 +19,9 @@
* src/mod_shared_roster.erl: Convert to exmpp (not tested yet).
* src/mod_roster.erl (push_item), src/mod_roster_odbc.erl (push_item):
Fix a bug in #xmlel construction: children must be a list.
2008-09-25 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/jlib.erl (timestamp_to_xml): Create an #xmlel element, not an

View File

@ -319,7 +319,7 @@ push_item(User, Server, From, Item) ->
% TODO: don't push to those who didn't load roster
push_item(User, Server, Resource, From, Item) ->
Request = #xmlel{ns = ?NS_ROSTER, name = 'query',
children = item_to_xml(Item)},
children = [item_to_xml(Item)]},
ResIQ = exmpp_iq:set(?NS_JABBER_CLIENT, Request, "push"),
ejabberd_router:route(
From,

View File

@ -354,7 +354,7 @@ push_item(User, Server, From, Item) ->
% TODO: don't push to those who not load roster
push_item(User, Server, Resource, From, Item) ->
Request = #xmlel{ns = ?NS_ROSTER, name = 'query',
children = item_to_xml(Item)},
children = [item_to_xml(Item)]},
ResIQ = exmpp_iq:set(?NS_JABBER_CLIENT, Request, "push"),
ejabberd_router:route(
From,