Check true status

main
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,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'):