Commit 752010c
committed
test(ChannelList): assert removed channels are evicted from activeChannels (#2599)
Regression test for #2599: removing the current user from a channel must evict
it from client.activeChannels, otherwise recoverState() re-watches it on the
next reconnect (recoverStateOnReconnect defaults to true) and the list
resurrects it.
The eviction itself lives in stream-chat core (GetStream/stream-chat-js#1788).
This test is red until that fix ships in a stream-chat release and the
dependency here is bumped to it; the bump + green run will accompany closing
#2599.1 parent d5d874b commit 752010c
1 file changed
Lines changed: 41 additions & 0 deletions
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
1472 | 1513 | | |
1473 | 1514 | | |
1474 | 1515 | | |
| |||
0 commit comments