From d6a9038198a76ab9b289b274fd6311ff82361dd2 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 25 Feb 2020 15:19:42 +1100 Subject: [PATCH] enable back notifications --- js/background.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/background.js b/js/background.js index 5ce84a8fc..3ea8d48cc 100644 --- a/js/background.js +++ b/js/background.js @@ -1470,7 +1470,8 @@ serverTrustRoot: window.getServerTrustRoot(), }; - Whisper.Notifications.disable(); // avoid notification flood until empty + // Whisper.Notifications.disable(); // avoid notification flood until empty + Whisper.Notifications.enable(); if (Whisper.Registration.ongoingSecondaryDeviceRegistration()) { const ourKey = textsecure.storage.user.getNumber(); @@ -1642,7 +1643,7 @@ // scenarios where we're coming back from sleep, we can get offline/online events // very fast, and it looks like a network blip. But we need to suppress // notifications in these scenarios too. So we listen for 'reconnect' events. - Whisper.Notifications.disable(); + // Whisper.Notifications.disable(); } function onProgress(ev) { const { count } = ev;