Implemented telemetry update sending

This commit is contained in:
Mark Qvist 2023-10-29 20:59:27 +01:00
parent 0b2a86a394
commit 92d8b4305b
5 changed files with 320 additions and 134 deletions

View file

@ -77,16 +77,26 @@ class Conversations():
def trust_icon(self, context_dest, unread):
trust_icon = "account-question"
if self.app.sideband.is_trusted(context_dest):
is_trusted = self.app.sideband.is_trusted(context_dest)
if self.app.sideband.requests_allowed_from(context_dest):
if unread:
trust_icon = "email-seal"
if is_trusted:
trust_icon = "email-seal"
else:
trust_icon = "email"
else:
trust_icon = "account-check"
trust_icon = "account-lock-open"
else:
if unread:
trust_icon = "email"
if is_trusted:
if unread:
trust_icon = "email-seal"
else:
trust_icon = "account-check"
else:
trust_icon = "account-question"
if unread:
trust_icon = "email"
else:
trust_icon = "account-question"
return trust_icon