Skip to content

Commit

Permalink
Merge pull request #71 from gamultong/enhancement/set-view-size-cursors
Browse files Browse the repository at this point in the history
set-view-size 리시버 cursors 이벤트 발행 조건 추가
  • Loading branch information
onee-only authored Dec 12, 2024
2 parents ac6becb + b74c518 commit af25260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cursor/event/handler/internal/cursor_event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ async def receive_set_view_size(message: Message[SetViewSizePayload]):
for other_cursor in new_watchings:
CursorHandler.add_watcher(watcher=cursor, watching=other_cursor)

await publish_new_cursors_event(target_cursors=[cursor], cursors=new_watchings)
if len(new_watchings) > 0:
await publish_new_cursors_event(target_cursors=[cursor], cursors=new_watchings)

for id in cur_watching:
other_cursor = CursorHandler.get_cursor(id)
Expand Down

0 comments on commit af25260

Please sign in to comment.