mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix username in mam export (#1510)(thanks to themaverik)
This commit is contained in:
parent
4ef1cdec12
commit
1bfb0ab39c
@ -198,15 +198,14 @@ export(_Server) ->
|
||||
[]
|
||||
end},
|
||||
{archive_msg,
|
||||
fun(Host, #archive_msg{us ={_LUser, LServer},
|
||||
fun(Host, #archive_msg{us ={LUser, LServer},
|
||||
id = _ID, timestamp = TS, peer = Peer,
|
||||
bare_peer = {PUser, PServer, <<>>},
|
||||
type = Type, nick = Nick, packet = Pkt})
|
||||
when LServer == Host ->
|
||||
TStmp = now_to_usec(TS),
|
||||
SUser = case Type of
|
||||
chat -> PUser;
|
||||
groupchat -> jid:encode({PUser, PServer, <<>>})
|
||||
chat -> LUser;
|
||||
groupchat -> jid:encode({LUser, LServer, <<>>})
|
||||
end,
|
||||
BarePeer = jid:encode(jid:tolower(jid:remove_resource(Peer))),
|
||||
LPeer = jid:encode(jid:tolower(Peer)),
|
||||
|
Loading…
Reference in New Issue
Block a user