From bd275abe429760b158806f42f12e9f42d2dbf230 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 9 Apr 2019 12:35:40 -0500 Subject: [PATCH] fixes for mail, work on specs, and added files for profile viewer --- onionr/communicator.py | 2 +- onionr/static-data/www/mail/mail.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/communicator.py b/onionr/communicator.py index ef94ae14..f10d37da 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -621,7 +621,7 @@ class OnionrCommunicatorDaemon: def detectAPICrash(self): '''exit if the api server crashes/stops''' if self._core._utils.localCommand('ping', silent=False) not in ('pong', 'pong!'): - for i in range(8): + for i in range(12): if self._core._utils.localCommand('ping') in ('pong', 'pong!') or self.shutdown: break # break for loop time.sleep(1) diff --git a/onionr/static-data/www/mail/mail.js b/onionr/static-data/www/mail/mail.js index cfbb7e89..09b8714a 100644 --- a/onionr/static-data/www/mail/mail.js +++ b/onionr/static-data/www/mail/mail.js @@ -264,7 +264,7 @@ function getSentbox(){ e.target.parentNode.parentNode.removeChild(e.target.parentNode) return } - showSentboxWindow() + showSentboxWindow(resp[i]['peer'], message) } })(i, resp) threadPart.appendChild(entry)