From 43bcd30543e4f26892f6e5ba486fb2e1fff239cb Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Tue, 22 Sep 2020 00:01:14 -0300 Subject: [PATCH] =?UTF-8?q?[NEW]=20Send=20E2E=20encrypted=20messages?= =?UTF-8?q?=E2=80=99=20content=20on=20push=20notifications=20(#18882)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/server/functions/notifications/mobile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/server/functions/notifications/mobile.js b/app/lib/server/functions/notifications/mobile.js index 9dce401393c4..593ca686e74b 100644 --- a/app/lib/server/functions/notifications/mobile.js +++ b/app/lib/server/functions/notifications/mobile.js @@ -58,10 +58,12 @@ export async function getPushData({ room, message, userId, senderUsername, sende return { payload: { sender: message.u, + senderName: username, type: room.t, name: room.name, messageType: message.t, tmid: message.tmid, + ...message.t === 'e2e' && { msg: message.msg }, }, roomName: settings.get('Push_show_username_room') && roomTypes.getConfig(room.t).isGroupChat(room) ? `#${ roomTypes.getRoomName(room.t, room) }` : '', username,