From ca3e1d165d8487cc1006429dbb07f20822c56d3c Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff Date: Mon, 27 Jun 2022 14:27:18 +0300 Subject: [PATCH] Respect subject lines in notifications --- src/services/notification_utils/notification_utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/notification_utils/notification_utils.js b/src/services/notification_utils/notification_utils.js index a221b022..aa692004 100644 --- a/src/services/notification_utils/notification_utils.js +++ b/src/services/notification_utils/notification_utils.js @@ -109,7 +109,11 @@ export const prepareNotificationObject = (notification, i18n) => { } else if (i18nString) { notifObj.body = i18n.t('notifications.' + i18nString) } else if (isStatusNotification(notification.type)) { - notifObj.body = notification.status.text + if (notification.status.summary) { + notifObj.body = notification.status.summary + } else { + notifObj.body = notification.status.text + } } // Shows first attached non-nsfw image, if any. Should add configuration for this somehow...