mirror of
https://github.com/zadam/trilium.git
synced 2025-01-30 10:57:51 +08:00
on a second thought, we'll display [encrypted] on recent changes when not in secure session
This commit is contained in:
parent
5d531216d9
commit
47d296cf12
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue