diff --git a/packages/editor/src/lib/editor/Editor.ts b/packages/editor/src/lib/editor/Editor.ts index d205a368d..e260a8709 100644 --- a/packages/editor/src/lib/editor/Editor.ts +++ b/packages/editor/src/lib/editor/Editor.ts @@ -2919,7 +2919,9 @@ export class Editor extends EventEmitter { const moveTowardsUser = () => { // Stop following if we can't find the user - const leaderPresence = [...leaderPresences] + const leaderPresence = this._getCollaboratorsQuery() + .get() + .filter((p) => p.userId === userId) .sort((a, b) => { return a.lastActivityTimestamp - b.lastActivityTimestamp })