aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_roster.erl4
-rw-r--r--src/mod_roster_odbc.erl2
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)]}]},