Repository navigation
Commit b429d70
committed
fix(tree): refresh the Archived section when a Bot is retired
archive_bot hides a retired Bot from the default list, so the sidebar's
Archived section is the only way back to its chat. That section's
field-change subscription covered archived/parent/treeRole/removed but
not retired, while the structure entry already reacts to it and
docs/subsystems/tree.md states both consumers refresh on it.
A retired Bot now appears in the Archived section on the change itself
rather than on the next 10 s roster poll. The archived-section test
harness takes the react stub it renders with, so the new test can run
the section's effects and fire the change.
Docs-not-needed: the behaviour is already stated in docs/subsystems/tree.md (both consumers refresh on `retired`); this commit makes client.js match it.
Fixes #24501 parent 16d1645 commit b429d70
3 files changed
Lines changed: 33 additions & 3 deletions
File tree
- changelog.d
- plugins/tree
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
| 536 | + | |
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
0 commit comments