1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02: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) ->