diff --git a/epicyon.py b/epicyon.py index f88e8a30a..89b1ebb72 100644 --- a/epicyon.py +++ b/epicyon.py @@ -1860,12 +1860,16 @@ if args.notifications: elif args.gnunet: proxyType = 'gnunet' + # only store inbox posts if we are not running as a daemon + storeInboxPosts = not args.noKeyPress + runNotificationsClient(baseDir, proxyType, httpPrefix, nickname, domain, port, args.password, args.screenreader, args.language, args.notificationSounds, args.notificationType, args.noKeyPress, + storeInboxPosts, args.debug) sys.exit() diff --git a/notifications_client.py b/notifications_client.py index ef1798767..77a05b6fb 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -575,6 +575,7 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, notificationSounds: bool, notificationType: str, noKeyPress: bool, + storeInboxPosts: bool, debug: bool) -> None: """Runs the notifications and screen reader client, which announces new inbox items @@ -766,7 +767,8 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, _storeMessage(speakerJson, 'dm') else: speakerJson['decrypted'] = False - # _storeMessage(speakerJson, 'inbox') + if storeInboxPosts: + _storeMessage(speakerJson, 'inbox') print('')