Always send push notifications in recipients language (#11307)

* Load data needed for members when inviting to quest

* Always send push notifications in recipients language. Fixes #8718

* Remove console.log
This commit is contained in:
Phillip Thelen
2019-08-15 17:00:46 +02:00
committed by Sabe Jones
parent 14106ec5bf
commit 04420aa60e
5 changed files with 11 additions and 13 deletions

View File

@@ -18,8 +18,8 @@ export async function sentMessage (sender, receiver, message, translate) {
sendPushNotification(
receiver,
{
title: translate('newPM'),
message: translate('newPMInfo', {name: getUserInfo(sender, ['name']).name, message}),
title: translate('newPM', receiver.preferences.language),
message: translate('newPMInfo', {name: getUserInfo(sender, ['name']).name, message}, receiver.preferences.language),
identifier: 'newPM',
category: 'newPM',
payload: {replyTo: sender._id},