|
|
|
@ -17,9 +17,13 @@ async function getRecentChanges() {
|
|
|
|
dateModifiedTo DESC
|
|
|
|
dateModifiedTo DESC
|
|
|
|
LIMIT 1000`);
|
|
|
|
LIMIT 1000`);
|
|
|
|
|
|
|
|
|
|
|
|
if (!protectedSessionService.isProtectedSessionAvailable()) {
|
|
|
|
|
|
|
|
for (const change of recentChanges) {
|
|
|
|
for (const change of recentChanges) {
|
|
|
|
if (change.current_isProtected) {
|
|
|
|
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]";
|
|
|
|
change.title = change.current_title = "[Protected]";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|