mirror of https://gitlab.com/bashrc2/epicyon
Don't try to align with web interface
parent
5c983cc9e0
commit
931e5a2080
|
@ -799,7 +799,6 @@ 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
|
||||||
|
@ -829,17 +828,6 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
if speakerJson.get('replyToYou'):
|
if speakerJson.get('replyToYou'):
|
||||||
if speakerJson['replyToYou'] is True:
|
if speakerJson['replyToYou'] is True:
|
||||||
indicatorReplies = True
|
indicatorReplies = True
|
||||||
if firstTime:
|
|
||||||
# If new DM has not been viewed via web interface
|
|
||||||
if not speakerJson.get('direct'):
|
|
||||||
if speakerJson['notify']['dm']:
|
|
||||||
indicatorDM = True
|
|
||||||
|
|
||||||
# If new reply has not been viewed via web interface
|
|
||||||
if not speakerJson.get('replyToYou'):
|
|
||||||
if speakerJson['notify']['reply']:
|
|
||||||
indicatorReplies = True
|
|
||||||
firstTime = False
|
|
||||||
|
|
||||||
if indicatorDM:
|
if indicatorDM:
|
||||||
if currPostId != speakerJson['id']:
|
if currPostId != speakerJson['id']:
|
||||||
|
@ -950,15 +938,6 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
if storeInboxPosts:
|
if storeInboxPosts:
|
||||||
_storeMessage(speakerJson, 'inbox')
|
_storeMessage(speakerJson, 'inbox')
|
||||||
|
|
||||||
# DM has been viewed via the web interface
|
|
||||||
if newDMsExist and \
|
|
||||||
not speakerJson['notify']['dm']:
|
|
||||||
newDMsExist = False
|
|
||||||
# Reply has been viewed via the web interface
|
|
||||||
if newRepliesExist and \
|
|
||||||
not speakerJson['notify']['reply']:
|
|
||||||
newRepliesExist = False
|
|
||||||
|
|
||||||
if not showNewPosts:
|
if not showNewPosts:
|
||||||
_clearScreen()
|
_clearScreen()
|
||||||
_showLocalBox(notifyJson, currTimeline,
|
_showLocalBox(notifyJson, currTimeline,
|
||||||
|
|
Loading…
Reference in New Issue