diff options
author | Alexey Shchepin <alexey@process-one.net> | 2017-03-14 02:31:51 +0300 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2017-03-14 02:31:51 +0300 |
commit | 069d28b1eda5384a67fa5fb2ac14b7cdc86eec31 (patch) | |
tree | c5c7b26c6703746ae128eccae264ead5a3d44ff2 /src/mod_mix.erl | |
parent | Fix handling of xmlrpc request without authentication structure (diff) |
Get rid of p1_sha calls
Diffstat (limited to 'src/mod_mix.erl')
-rw-r--r-- | src/mod_mix.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_mix.erl b/src/mod_mix.erl index 940e9898f..714a6b020 100644 --- a/src/mod_mix.erl +++ b/src/mod_mix.erl @@ -261,7 +261,7 @@ publish_participant(From, To) -> LFrom = jid:tolower(BareFrom), LTo = jid:tolower(jid:remove_resource(To)), Participant = #mix_participant{jid = BareFrom}, - ItemID = p1_sha:sha(jid:encode(LFrom)), + ItemID = str:sha(jid:encode(LFrom)), mod_pubsub:publish_item( LTo, To#jid.lserver, ?NS_MIX_NODES_PARTICIPANTS, From, ItemID, [xmpp:encode(Participant)]). @@ -284,7 +284,7 @@ delete_presence(From, To) -> delete_participant(From, To) -> LFrom = jid:tolower(jid:remove_resource(From)), - ItemID = p1_sha:sha(jid:encode(LFrom)), + ItemID = str:sha(jid:encode(LFrom)), delete_presence(From, To), delete_item(From, To, ?NS_MIX_NODES_PARTICIPANTS, ItemID). |