summaryrefslogtreecommitdiff
path: root/src/mod_roster.erl
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2017-03-14 02:31:51 +0300
committerAlexey Shchepin <alexey@process-one.net>2017-03-14 02:31:51 +0300
commit069d28b1eda5384a67fa5fb2ac14b7cdc86eec31 (patch)
treec5c7b26c6703746ae128eccae264ead5a3d44ff2 /src/mod_roster.erl
parentFix handling of xmlrpc request without authentication structure (diff)
Get rid of p1_sha calls
Diffstat (limited to 'src/mod_roster.erl')
-rw-r--r--src/mod_roster.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl
index 5f499ec7..cf281528 100644
--- a/src/mod_roster.erl
+++ b/src/mod_roster.erl
@@ -216,7 +216,7 @@ process_local_iq(#iq{lang = Lang} = IQ) ->
xmpp:make_error(IQ, xmpp:err_service_unavailable(Txt, Lang)).
roster_hash(Items) ->
- p1_sha:sha(term_to_binary(lists:sort([R#roster{groups =
+ str:sha(term_to_binary(lists:sort([R#roster{groups =
lists:sort(Grs)}
|| R = #roster{groups = Grs}
<- Items]))).
@@ -270,7 +270,7 @@ write_roster_version_t(LUser, LServer) ->
write_roster_version(LUser, LServer, true).
write_roster_version(LUser, LServer, InTransaction) ->
- Ver = p1_sha:sha(term_to_binary(p1_time_compat:unique_integer())),
+ Ver = str:sha(term_to_binary(p1_time_compat:unique_integer())),
Mod = gen_mod:db_mod(LServer, ?MODULE),
Mod:write_roster_version(LUser, LServer, InTransaction, Ver),
Ver.