diff options
author | Alexey Shchepin <alexey@process-one.net> | 2005-11-22 18:43:06 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2005-11-22 18:43:06 +0000 |
commit | 816d5474f805cdb6d937c1147e48e967b1db351f (patch) | |
tree | 2d22732c25db96d2f7cada147b511d4a13511cc8 /src | |
parent | * src/web/ejabberd_web_admin.erl: Fixed encoding of user names in (diff) |
* src/mod_roster.erl: The "id" attribute of roster push packet was
missed (thanks to Maxim Ryazanov)
* src/mod_roster_odbc.erl: Likewise
SVN Revision: 442
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_roster.erl | 4 | ||||
-rw-r--r-- | src/mod_roster_odbc.erl | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl index 48e2c1e8b..84d02aa41 100644 --- a/src/mod_roster.erl +++ b/src/mod_roster.erl @@ -313,11 +313,12 @@ push_item(User, Server, From, Item) -> push_item(User, Server, Resource, From, Item) end, ejabberd_sm:get_user_resources(User, Server)). -% TODO: don't push to those who not load roster +% TODO: don't push to those who didn't load roster -ifdef(PSI_ROSTER_WORKAROUND). push_item(User, Server, Resource, _From, Item) -> ResIQ = #iq{type = set, xmlns = ?NS_ROSTER, + id = "push", sub_el = [{xmlelement, "query", [{"xmlns", ?NS_ROSTER}], [item_to_xml(Item)]}]}, @@ -330,6 +331,7 @@ push_item(User, Server, Resource, _From, Item) -> push_item(User, Server, Resource, From, Item) -> ResIQ = #iq{type = set, xmlns = ?NS_ROSTER, + id = "push", sub_el = [{xmlelement, "query", [{"xmlns", ?NS_ROSTER}], [item_to_xml(Item)]}]}, diff --git a/src/mod_roster_odbc.erl b/src/mod_roster_odbc.erl index 66b065473..d94b13b32 100644 --- a/src/mod_roster_odbc.erl +++ b/src/mod_roster_odbc.erl @@ -385,6 +385,7 @@ push_item(User, Server, From, Item) -> push_item(User, Server, Resource, _From, Item) -> ResIQ = #iq{type = set, xmlns = ?NS_ROSTER, + id = "push", sub_el = [{xmlelement, "query", [{"xmlns", ?NS_ROSTER}], [item_to_xml(Item)]}]}, @@ -397,6 +398,7 @@ push_item(User, Server, Resource, _From, Item) -> push_item(User, Resource, From, Item) -> ResIQ = #iq{type = set, xmlns = ?NS_ROSTER, + id = "push", sub_el = [{xmlelement, "query", [{"xmlns", ?NS_ROSTER}], [item_to_xml(Item)]}]}, |