From 6591bffbd282f22aba24e545d3deff8e31c00a63 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 16 Mar 2021 18:17:54 +0000 Subject: [PATCH] Check true status --- notifications_client.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index 0b1a54c6c..021adf8b9 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -821,8 +821,12 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, if not os.path.isdir(soundsDir): soundsDir = 'theme/default/sounds' - indicatorDM = speakerJson.get('direct') - indicatorReplies = speakerJson.get('replyToYou') + if speakerJson.get('direct'): + if speakerJson['direct'] is True: + indicatorDM = speakerJson.get('direct') + if speakerJson.get('replyToYou'): + if speakerJson['replyToYou'] is True: + indicatorReplies = speakerJson.get('replyToYou') if firstTime: # If new DM has not been viewed via web interface if not speakerJson.get('direct'):