mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
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:
committed by
Sabe Jones
parent
14106ec5bf
commit
04420aa60e
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user