Added unread indicator to menu bar.

This commit is contained in:
Mark Qvist 2021-09-23 17:20:13 +02:00
parent 953c8c94c7
commit f86cdb4c5e
4 changed files with 50 additions and 12 deletions

View file

@ -223,6 +223,12 @@ class NomadNetworkApp:
def conversations(self):
return nomadnet.Conversation.conversation_list(self)
def has_unread_conversations(self):
if len(nomadnet.Conversation.unread_conversations) > 0:
return True
else:
return False
def conversation_is_unread(self, source_hash):
if bytes.fromhex(source_hash) in nomadnet.Conversation.unread_conversations:
return True