Check true status

merge-requests/21/head
Bob Mottram 2021-03-16 18:17:54 +00:00
parent 87d4b02f6b
commit 6591bffbd2
1 changed files with 6 additions and 2 deletions

View File

@ -821,7 +821,11 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
if not os.path.isdir(soundsDir): if not os.path.isdir(soundsDir):
soundsDir = 'theme/default/sounds' soundsDir = 'theme/default/sounds'
if speakerJson.get('direct'):
if speakerJson['direct'] is True:
indicatorDM = speakerJson.get('direct') indicatorDM = speakerJson.get('direct')
if speakerJson.get('replyToYou'):
if speakerJson['replyToYou'] is True:
indicatorReplies = speakerJson.get('replyToYou') indicatorReplies = speakerJson.get('replyToYou')
if firstTime: if firstTime:
# If new DM has not been viewed via web interface # If new DM has not been viewed via web interface