Commit b067d97
RTC: Enforce peer limit per post instead of globally (#47919)
The `withRoomLimit` wrapper was monitoring awareness changes on all
rooms, including collection rooms (objectId === null) that are shared
across posts. This caused the peer limit to act as a global cap: e.g.
3 users on post A + 2 on post B would breach the limit of 3 in the
shared collection room and disconnect the newest editors.
Skip awareness monitoring on collection rooms so the limit is only
enforced on entity rooms, which are scoped per post.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/23947491000
Upstream-Ref: Automattic/jetpack@87796391 parent af614f5 commit b067d97
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
| 585 | + | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments