mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
The archive_msg export fun requires MUC Service for room archives
This commit is contained in:
parent
2229e4c6db
commit
796f567db1
2 changed files with 9 additions and 3 deletions
|
@ -362,10 +362,10 @@ export(_Server) ->
|
|||
[]
|
||||
end},
|
||||
{archive_msg,
|
||||
fun(Host, #archive_msg{us ={LUser, LServer},
|
||||
fun([Host | HostTail], #archive_msg{us ={LUser, LServer},
|
||||
id = _ID, timestamp = TS, peer = Peer,
|
||||
type = Type, nick = Nick, packet = Pkt})
|
||||
when LServer == Host ->
|
||||
when (LServer == Host) or ([LServer] == HostTail) ->
|
||||
TStmp = misc:now_to_usec(TS),
|
||||
SUser = case Type of
|
||||
chat -> LUser;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue