From cd90945b565e3adf9b9a5e6d9f463187d23d6b04 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 7 Oct 2022 01:24:16 +0200 Subject: [PATCH] Improved notification logic on desktop --- sbapp/sideband/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 696247c..313bf0c 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -1161,8 +1161,9 @@ class SidebandCore(): self.unread_conversation(context_dest) self.setstate("app.flags.unread_conversations", True) - if self.gui_display() == "conversations_screen" and self.gui_foreground(): - should_notify = False + if RNS.vendor.platformutils.is_android(): + if self.gui_display() == "conversations_screen" and self.gui_foreground(): + should_notify = False if self.is_client: should_notify = False