H-337: restore Web widget reply visibility (#64)

* H-337: restore widget reply delivery

* H-337: harden widget conversation ownership

---------

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-20 22:22:27 +08:00
committed by GitHub
co-authored by rogee
parent abb1bed424
commit b31b1b9562
22 changed files with 847 additions and 83 deletions
@@ -61,8 +61,8 @@ func TestHub_Register_ContactWithPresence(t *testing.T) {
hub.Register(client)
assert.Contains(t, hub.clients, client.ID)
// Contact should be auto-subscribed to account room + pubsub_token room
assert.True(t, client.SubscribedRooms[accountRoomName(10)])
// Contacts only receive events addressed to their own pubsub token.
assert.False(t, client.SubscribedRooms[accountRoomName(10)])
assert.True(t, client.SubscribedRooms[pubsubTokenRoomName("token123")])
hub.Unregister(client)