mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix a bug in #xmlel construction: children must be a list.
SVN Revision: 1583
This commit is contained in:
parent
12d515a8fe
commit
da034b3090
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user