mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02: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
@ -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…
x
Reference in New Issue
Block a user