fix: using normal status to signal unread messages in order to avoid BT overlap bug

This commit is contained in:
Simone Margaritelli
2019-10-23 15:14:55 +02:00
parent 7779ebc983
commit 23ef17d4c7
3 changed files with 11 additions and 12 deletions

View File

@ -129,6 +129,10 @@ class Voice:
s = 's' if new_shakes > 1 else ''
return self._('Cool, we got {num} new handshake{plural}!').format(num=new_shakes, plural=s)
def on_unread_messages(self, count, total):
s = 's' if count > 1 else ''
return self._('You have {count} new message{plural}!').format(num=count, plural=s)
def on_rebooting(self):
return self._("Ops, something went wrong ... Rebooting ...")