Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
recent changes should show titles of protected notes correctly when in protected session
zadam16790e388bc7
diff --git a/package-lock.json b/package-lock.jsonindex b258f99c99..ed2f68159e 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,6 +1,6 @@{"name": "trilium",- "version": "0.30.2-beta",+ "version": "0.30.3-beta","lockfileVersion": 1,"requires": true,"dependencies": {diff --git a/src/routes/api/recent_changes.js b/src/routes/api/recent_changes.jsindex 683136fbf8..7c34efdefc 100644--- a/src/routes/api/recent_changes.js+++ b/src/routes/api/recent_changes.js@@ -17,9 +17,13 @@ async function getRecentChanges() {dateModifiedTo DESCLIMIT 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]";}}