Repository navigation
Commit f66687e
fix(desktop): refresh mention directory from background membership rows
The app-wide background receiver merged kind 40099 channel-event rows
into the timeline cache but never refreshed the mention directory, so a
third-party member add/remove in a subscribed background channel left
mention candidates stale until the next focused directory poll. Parse
the member_joined/member_left/member_removed payload in
handleIncomingMessage and call the existing
refreshDirectoryAfterMembershipChange with the row's event id, mirroring
the mounted-channel path; the helper's coalesce, cancel and event-id
dedup semantics are unchanged. A mounted-caller regression drives the
real hook with relay-wire 40099 rows and asserts that non-membership
rows do not refresh.
Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <[email protected]>1 parent ff2b68c commit f66687e
2 files changed
Lines changed: 546 additions & 0 deletions
File tree
- desktop/src/features/channels
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
322 | 324 | | |
323 | 325 | | |
324 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
325 | 348 | | |
326 | 349 | | |
327 | 350 | | |
| |||
0 commit comments