aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/ServicesStore.ts')
-rw-r--r--src/stores/ServicesStore.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts
index 9f2cfeca3..58c6b2a87 100644
--- a/src/stores/ServicesStore.ts
+++ b/src/stores/ServicesStore.ts
@@ -917,12 +917,13 @@ export default class ServicesStore extends TypedStore {
917 917
918 if (service.isNotificationEnabled) { 918 if (service.isNotificationEnabled) {
919 let title: string; 919 let title: string;
920 options.icon = service.iconUrl;
921 if (this.stores.settings.all.app.privateNotifications === true) { 920 if (this.stores.settings.all.app.privateNotifications === true) {
922 // Remove message data from notification in private mode 921 // Remove message data from notification in private mode
923 options.body = ''; 922 options.body = '';
923 options.icon = service.icon;
924 title = `Notification from ${service.name}`; 924 title = `Notification from ${service.name}`;
925 } else { 925 } else {
926 options.icon = options.icon || service.icon;
926 options.body = typeof options.body === 'string' ? options.body : ''; 927 options.body = typeof options.body === 'string' ? options.body : '';
927 title = 928 title =
928 typeof args[0].title === 'string' ? args[0].title : service.name; 929 typeof args[0].title === 'string' ? args[0].title : service.name;