added logic for stranger notification setting
made page content refreshes happen on visibility
This commit is contained in:
parent
7bedae48a4
commit
4cd2302bc9
5 changed files with 25 additions and 4 deletions
|
@ -76,4 +76,7 @@ def on_processblocks(api, data=None):
|
|||
if data['block'].decrypted:
|
||||
config.reload()
|
||||
if config.get('mail.notificationSetting', True):
|
||||
if not config.get('mail.strangersNotification', True):
|
||||
if not user.isFriend():
|
||||
return
|
||||
notifier.notification_with_sound(title="Onionr Mail - New Message", message="From: %s\n\nSubject: %s" % (signer, metadata['subject']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue