[FIX] Add fallback message when show notification content is disabled (#19516)

Co-authored-by: Rogerio Junior <junior.rogerio8@gmail.com>
pull/19748/head^2
Youssef Muhamad 5 years ago committed by GitHub
parent 13bf9508cc
commit 10d9f32574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/lib/server/functions/notifications/mobile.js

@ -50,7 +50,7 @@ export async function getPushData({ room, message, userId, senderUsername, sende
if (shouldOmitMessage && settings.get('Push_request_content_from_server')) {
messageText = TAPi18n.__('You_have_a_new_message', { lng });
} else if (!settings.get('Push_show_message')) {
messageText = ' ';
messageText = TAPi18n.__('You_have_a_new_message', { lng });
} else {
messageText = notificationMessage;
}

Loading…
Cancel
Save