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.
This commit is contained in:
Holger Weiss 2018-06-19 23:12:27 +02:00
parent 81f4dd0e6a
commit 23cc0f8c3c
1 changed files with 1 additions and 1 deletions

View File

@ -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)},