From ff94a95589bcff4680740f3b36840540f3323845 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 18 Dec 2019 10:22:01 +0000 Subject: [PATCH] Desktop: Fixes #2144: Fix notifications on Windows 7 --- ReactNativeClient/lib/services/AlarmServiceDriverNode.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ReactNativeClient/lib/services/AlarmServiceDriverNode.js b/ReactNativeClient/lib/services/AlarmServiceDriverNode.js index 13cca65046..a878d67520 100644 --- a/ReactNativeClient/lib/services/AlarmServiceDriverNode.js +++ b/ReactNativeClient/lib/services/AlarmServiceDriverNode.js @@ -72,6 +72,11 @@ class AlarmServiceDriverNode { }; if ('body' in notification) o.message = notification.body; + // Message is required on Windows 7 however we don't want to repeat the title so + // make it an empty string. + // https://github.com/laurent22/joplin/issues/2144 + if (!o.message) o.message = '-'; + this.logger().info('AlarmServiceDriverNode::scheduleNotification: Triggering notification:', o); notifier.notify(o, (error, response) => {