Skip to content

Commit

Permalink
[NEW] Include message type & id in push notification payload (#12771)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoso authored and sampaiodiego committed Dec 5, 2018
1 parent 406b958 commit 4bb5d7d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export async function sendSinglePush({ room, message, userId, receiverUsername,
sender: message.u,
type: room.t,
name: room.name,
messageType: message.t,
messageId: message._id,
},
roomName: RocketChat.settings.get('Push_show_username_room') && room.t !== 'd' ? `#${ RocketChat.roomTypes.getRoomName(room.t, room) }` : '',
username,
Expand Down

0 comments on commit 4bb5d7d

Please sign in to comment.