diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-02-26 10:07:12 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-02-26 10:07:12 +0300 |
commit | c1439ddd5bff82292919774c224a2bf3c8f63258 (patch) | |
tree | cc80ebe280ac56fcdfa9656f8f03a1938f53bdeb /src/mod_shared_roster_sql.erl | |
parent | Don'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.erl | 4 |
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). |