mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
attempt to make updating clients via websocket faster
This commit is contained in:
@@ -795,7 +795,7 @@ ws.subscribeToOutsideSyncMessages(async syncData => {
|
||||
syncData.filter(sync => sync.entityName === 'attributes').forEach(sync => {
|
||||
const note = treeCache.notes[sync.noteId];
|
||||
|
||||
if (note && note.attributeCache) {
|
||||
if (note && note.__attributeCache) {
|
||||
noteIdsToRefresh.add(sync.entityId);
|
||||
}
|
||||
});
|
||||
@@ -869,7 +869,7 @@ async function reloadNotes(noteIds, activateNotePath = null) {
|
||||
if (activateNotePath) {
|
||||
const node = await getNodeFromPath(activateNotePath);
|
||||
|
||||
if (node) {
|
||||
if (node && !node.isActive()) {
|
||||
await node.setActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user