Improvements and fixes for push notifications (#11507)

* Strip markdown from push notifications

* Revert "Strip markdown from push notifications"

This reverts commit 4741e584c6.

* correctly set type for mention push notifications

* Add unformattedText field to chat messages

* fiix lint errors

* Add check that markdown formatting is stripped from messages

* Add check for markdown formatting in messages.
This commit is contained in:
Phillip Thelen
2019-11-29 18:46:26 +01:00
committed by Matteo Pagliazzi
parent 3c394e7448
commit b108b047cd
8 changed files with 28 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ export async function sendChatPushNotifications (user, group, message, mentions,
member,
{
title: translate('groupActivityNotificationTitle', { user: message.user, group: group.name }, member.preferences.language),
message: message.text,
message: message.unformattedText,
identifier: 'groupActivity',
category: 'groupActivity',
payload: {