mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-17 13:20:25 -04:00
Added unread indicator to menu bar.
This commit is contained in:
parent
953c8c94c7
commit
f86cdb4c5e
4 changed files with 50 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue