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 2295933f8..1ab618a43 100644 --- a/src/mod_roster.erl +++ b/src/mod_roster.erl @@ -147,7 +147,7 @@ process_local_iq(From, To, #iq{type = Type} = IQ) -> end. roster_hash(Items) -> - sha:sha(term_to_binary(lists:sort([R#roster{groups = + p1_sha:sha(term_to_binary(lists:sort([R#roster{groups = lists:sort(Grs)} || R = #roster{groups = Grs} <- Items]))). @@ -211,7 +211,7 @@ write_roster_version_t(LUser, LServer) -> write_roster_version(LUser, LServer, true). write_roster_version(LUser, LServer, InTransaction) -> - Ver = sha:sha(term_to_binary(now())), + Ver = p1_sha:sha(term_to_binary(now())), write_roster_version(LUser, LServer, InTransaction, Ver, gen_mod:db_type(LServer, ?MODULE)), Ver. |