mirror of https://gitlab.com/bashrc2/epicyon
Only revive once
parent
b70316de28
commit
00596540af
|
@ -794,6 +794,7 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
newRepliesExist = False
|
newRepliesExist = False
|
||||||
newDMsExist = False
|
newDMsExist = False
|
||||||
currPostId = ''
|
currPostId = ''
|
||||||
|
firstTime = True
|
||||||
while (1):
|
while (1):
|
||||||
session = createSession(proxyType)
|
session = createSession(proxyType)
|
||||||
notifyJson = None
|
notifyJson = None
|
||||||
|
@ -815,15 +816,17 @@ 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 new DM has not been viewed via web interface
|
if firstTime:
|
||||||
if not speakerJson.get('direct'):
|
# If new DM has not been viewed via web interface
|
||||||
if speakerJson['notify']['dm']:
|
if not speakerJson.get('direct'):
|
||||||
speakerJson['direct'] = True
|
if speakerJson['notify']['dm']:
|
||||||
|
speakerJson['direct'] = True
|
||||||
|
|
||||||
# If new reply has not been viewed via web interface
|
# If new reply has not been viewed via web interface
|
||||||
if not speakerJson.get('replyToYou'):
|
if not speakerJson.get('replyToYou'):
|
||||||
if speakerJson['notify']['reply']:
|
if speakerJson['notify']['reply']:
|
||||||
speakerJson['replyToYou'] = True
|
speakerJson['replyToYou'] = True
|
||||||
|
firstTime = False
|
||||||
|
|
||||||
if speakerJson.get('direct'):
|
if speakerJson.get('direct'):
|
||||||
if speakerJson['direct'] is True:
|
if speakerJson['direct'] is True:
|
||||||
|
|
Loading…
Reference in New Issue