25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Archive messages with type=normal and pubsub payload (like mucsub messages)

This commit is contained in:
Paweł Chmielowski 2018-10-08 15:56:44 +02:00
parent 510925c9a1
commit a16acd77ed

View File

@ -649,7 +649,8 @@ should_archive(#message{body = Body, subject = Subject,
false; false;
none -> none ->
xmpp:get_text(Body) /= <<>> orelse xmpp:get_text(Body) /= <<>> orelse
xmpp:get_text(Subject) /= <<>> xmpp:get_text(Subject) /= <<>> orelse
xmpp:has_subtag(Pkt, #ps_event{})
end end
end; end;
should_archive(_, _LServer) -> should_archive(_, _LServer) ->