diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2018-06-19 23:12:27 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2018-06-19 23:12:27 +0200 |
commit | 23cc0f8c3cfe508e0941a66c284d3072e36faf69 (patch) | |
tree | 0676ccb8215c58bddb5b92e1ac4ac184ab024419 | |
parent | mod_push_keepalive: Increase default timeout (diff) |
mod_push: Include a static body text by default
Set the 'include_body' option to a static text by default. Some app
servers check for the presence of a 'last-message-body' field to
distinguish between notifications generated for actual chat messages and
notifications triggered by other types of traffic.
-rw-r--r-- | src/mod_push.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_push.erl b/src/mod_push.erl index 82ab70cc9..48746ac20 100644 --- a/src/mod_push.erl +++ b/src/mod_push.erl @@ -143,7 +143,7 @@ mod_opt_type(O) when O == use_cache; O == cache_missed -> -spec mod_options(binary()) -> [{atom(), any()}]. mod_options(Host) -> [{include_sender, false}, - {include_body, false}, + {include_body, <<"New message">>}, {db_type, ejabberd_config:default_db(Host, ?MODULE)}, {use_cache, ejabberd_config:use_cache(Host)}, {cache_size, ejabberd_config:cache_size(Host)}, |