on a second thought, we'll display [encrypted] on recent changes when not in secure session

This commit is contained in:
azivner 2017-09-27 00:16:55 -04:00
parent 5d531216d9
commit 47d296cf12

View file

@ -13,12 +13,12 @@ $(document).bind('keydown', 'alt+r', function() {
for (const row of result) { for (const row of result) {
if (row.encryption > 0) { if (row.encryption > 0) {
if (!isEncryptionAvailable()) { if (isEncryptionAvailable()) {
// we don't display encrypted note activity if we're not in the secure session row.note_title = decryptString(row.note_title);
continue; }
else {
row.note_title = "[encrypted]";
} }
row.note_title = decryptString(row.note_title);
} }
const dateModified = new Date(row.date_modified * 1000); const dateModified = new Date(row.date_modified * 1000);