diff options
Diffstat (limited to 'src/mod_roster.erl')
-rw-r--r-- | src/mod_roster.erl | 4 |
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. |