Check read status before highlighting

main
Bob Mottram 2021-03-23 22:57:46 +00:00
parent ebb2453542
commit 9e8045d047
1 changed files with 3 additions and 1 deletions

View File

@ -1010,7 +1010,9 @@ def _desktopShowBox(yourActor: str, boxName: str, boxJson: {},
published + ' | ' + content
if boxName == 'inbox' and \
_postIsToYou(yourActor, postJsonObject):
lineStr = '\33[7m' + lineStr + '\33[0m'
if not _hasReadPost(actor, postJsonObject['id'], 'dm'):
if not _hasReadPost(actor, postJsonObject['id'], 'replies'):
lineStr = '\33[7m' + lineStr + '\33[0m'
print(lineStr)
ctr += 1