summaryrefslogtreecommitdiff
path: root/src/mod_offline.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2017-12-02 21:35:09 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2017-12-02 21:35:09 +0100
commitab2a90181c5fcb6819a60a067917284f92e171aa (patch)
treef12ae9af3f4372fba7259056ba6d7936e6a1546a /src/mod_offline.erl
parentSet executable permission on mac_listener when installing (#2138) (diff)
mod_offline: Always ignore groupchat messages
Diffstat (limited to 'src/mod_offline.erl')
-rw-r--r--src/mod_offline.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_offline.erl b/src/mod_offline.erl
index 5b95fe4b..746f00ba 100644
--- a/src/mod_offline.erl
+++ b/src/mod_offline.erl
@@ -375,6 +375,7 @@ remove_msg_by_node(To, Seq) ->
-spec need_to_store(binary(), message()) -> boolean().
need_to_store(_LServer, #message{type = error}) -> false;
+need_to_store(_LServer, #message{type = groupchat}) -> false;
need_to_store(LServer, #message{type = Type} = Packet) ->
case xmpp:has_subtag(Packet, #offline{}) of
false ->
@@ -383,7 +384,7 @@ need_to_store(LServer, #message{type = Type} = Packet) ->
true;
no_store ->
false;
- none when Type == headline; Type == groupchat ->
+ none when Type == headline ->
false;
none ->
case gen_mod:get_module_opt(