Even if a groupchat message is tagged with a <store/> hint, don't store
it in a user archive. The hint should only be honored by the MUC
archive.
-spec should_archive(message(), binary()) -> boolean().
should_archive(#message{type = error}, _LServer) ->
false;
+should_archive(#message{type = groupchat}, _LServer) ->
+ false;
should_archive(#message{meta = #{from_offline := true}}, _LServer) ->
false;
should_archive(#message{body = Body, subject = Subject,
true;
no_store ->
false;
- none when Type == groupchat; Type == headline ->
+ none when Type == headline ->
false;
none ->
xmpp:get_text(Body) /= <<>> orelse