recent changes should show titles of protected notes correctly when in protected session

This commit is contained in:
zadam 2019-03-04 20:44:20 +01:00
parent b48474998b
commit 16790e388b
2 changed files with 8 additions and 4 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "trilium",
"version": "0.30.2-beta",
"version": "0.30.3-beta",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -17,9 +17,13 @@ async function getRecentChanges() {
dateModifiedTo DESC
LIMIT 1000`);
if (!protectedSessionService.isProtectedSessionAvailable()) {
for (const change of recentChanges) {
if (change.current_isProtected) {
for (const change of recentChanges) {
if (change.current_isProtected) {
if (protectedSessionService.isProtectedSessionAvailable()) {
change.title = protectedSessionService.decryptNoteTitle(change.noteId, change.title);
change.current_title = protectedSessionService.decryptNoteTitle(change.noteId, change.current_title);
}
else {
change.title = change.current_title = "[Protected]";
}
}