Use jid:encode/1 instead of the deprecated jid:to_string/1 (#1510)

This commit is contained in:
Badlop 2017-05-10 11:17:12 +02:00
parent cd18d3d8a7
commit 4849ac9781
1 changed files with 3 additions and 3 deletions

View File

@ -206,10 +206,10 @@ export(_Server) ->
TStmp = now_to_usec(TS),
SUser = case Type of
chat -> PUser;
groupchat -> jid:to_string({PUser, PServer, <<>>})
groupchat -> jid:encode({PUser, PServer, <<>>})
end,
BarePeer = jid:to_string(jid:tolower(jid:remove_resource(Peer))),
LPeer = jid:to_string(jid:tolower(Peer)),
BarePeer = jid:encode(jid:tolower(jid:remove_resource(Peer))),
LPeer = jid:encode(jid:tolower(Peer)),
XML = fxml:element_to_binary(Pkt),
Body = fxml:get_subtag_cdata(Pkt, <<"body">>),
SType = jlib:atom_to_binary(Type),