added sync mutex to ping messages

This commit is contained in:
zadam
2019-10-22 21:59:51 +02:00
parent 3de124748d
commit ec7c0f0723
5 changed files with 27 additions and 22 deletions

View File

@@ -32,17 +32,16 @@ class EditedNotesWidget extends StandardWidget {
return;
}
const noteIds = editedNotes.flatMap(note => note.notePath);
const noteIds = editedNotes.flatMap(note => note.noteId);
await treeCache.getNotes(noteIds, true); // preload all at once
const $list = $('<ul>');
for (const editedNote of editedNotes) {
const note = await treeCache.getNote(editedNote.noteId, true);
const $item = $("<li>");
if (!note) {
if (editedNote.isDeleted) {
$item.append($("<i>").text(editedNote.title + " (deleted)"));
}
else {