mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
recent changes should show titles of protected notes correctly when in protected session
This commit is contained in:
@@ -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]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user