From 47d296cf124d5d0eee274e56be33ae6c9d99d6b0 Mon Sep 17 00:00:00 2001 From: azivner Date: Wed, 27 Sep 2017 00:16:55 -0400 Subject: [PATCH] on a second thought, we'll display [encrypted] on recent changes when not in secure session --- static/js/recent_changes.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/recent_changes.js b/static/js/recent_changes.js index 15d61e3ac..27d87d625 100644 --- a/static/js/recent_changes.js +++ b/static/js/recent_changes.js @@ -13,12 +13,12 @@ $(document).bind('keydown', 'alt+r', function() { for (const row of result) { if (row.encryption > 0) { - if (!isEncryptionAvailable()) { - // we don't display encrypted note activity if we're not in the secure session - continue; + if (isEncryptionAvailable()) { + row.note_title = decryptString(row.note_title); + } + else { + row.note_title = "[encrypted]"; } - - row.note_title = decryptString(row.note_title); } const dateModified = new Date(row.date_modified * 1000);