Skip to content

Commit

Permalink
Fix excessive displaying presences (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
devleejb authored Feb 29, 2024
1 parent ec633f5 commit f82c891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/headers/DocumentHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function DocumentHeader() {

const unsubscribe = editorState.doc.subscribe("others", (event) => {
if (event.type === "watched") {
pushToPresenceList(event.value);
setPresenceList(editorState.doc?.getPresences?.() ?? []);
}

if (event.type === "unwatched") {
Expand Down

0 comments on commit f82c891

Please sign in to comment.