mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
recent changes should show titles of protected notes correctly when in protected session
This commit is contained in:
parent
b48474998b
commit
16790e388b
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "trilium",
|
||||
"version": "0.30.2-beta",
|
||||
"version": "0.30.3-beta",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -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]";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user