summaryrefslogtreecommitdiff
path: root/src/mod_shared_roster_sql.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-26 10:07:12 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-26 10:07:12 +0300
commitc1439ddd5bff82292919774c224a2bf3c8f63258 (patch)
treecc80ebe280ac56fcdfa9656f8f03a1938f53bdeb /src/mod_shared_roster_sql.erl
parentDon't pass empty resource to jid:make() (diff)
Get rid of jid:to_string/1 and jid:from_string/1
Diffstat (limited to 'src/mod_shared_roster_sql.erl')
-rw-r--r--src/mod_shared_roster_sql.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_shared_roster_sql.erl b/src/mod_shared_roster_sql.erl
index 8a32cc38..6378ea96 100644
--- a/src/mod_shared_roster_sql.erl
+++ b/src/mod_shared_roster_sql.erl
@@ -123,7 +123,7 @@ get_group_explicit_users(Host, Group) ->
{selected, Rs} ->
lists:map(
fun({JID}) ->
- {U, S, _} = jid:tolower(jid:from_string(JID)),
+ {U, S, _} = jid:tolower(jid:decode(JID)),
{U, S}
end, Rs);
_ ->
@@ -198,6 +198,6 @@ import(_, _, _) ->
%%% Internal functions
%%%===================================================================
make_jid_s(U, S) ->
- jid:to_string(jid:tolower(jid:make(U, S))).
+ jid:encode(jid:tolower(jid:make(U, S))).
make_jid_s({U, S}) -> make_jid_s(U, S).