fix: Encrypted push notification missing message.content (#33377)

Co-authored-by: Hugo Costa <20212776+hugocostadev@users.noreply.github.com>
pull/33616/head
Diego Mello 2 years ago committed by GitHub
parent f8109296a2
commit df7f66980d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/cool-dryers-judge.md
  2. 2
      apps/meteor/app/lib/server/functions/notifications/mobile.js

@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": minor
---
Send messages with encrypted attachments to mobile notification service

@ -52,7 +52,7 @@ export async function getPushData({
name: settings.get('Push_show_username_room') ? room.name : '',
messageType: message.t,
tmid: message.tmid,
...(message.t === 'e2e' && { msg: message.msg }),
...(message.t === 'e2e' && { msg: message.msg, content: message.content }),
},
roomName:
settings.get('Push_show_username_room') && roomCoordinator.getRoomDirectives(room.t).isGroupChat(room)

Loading…
Cancel
Save