Skip to content

Commit

Permalink
[NEW] Send E2E encrypted messages’ content on push notifications (#18882
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rodrigok authored Sep 22, 2020
1 parent b77070b commit 43bcd30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/lib/server/functions/notifications/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 43bcd30

Please sign in to comment.