From 23cc0f8c3cfe508e0941a66c284d3072e36faf69 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 19 Jun 2018 23:12:27 +0200 Subject: [PATCH] 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. --- src/mod_push.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)},