Commit 0f2bccd
fix(mobile): recognize kind:9005 deletions in timeline
Bring mobile to parity with desktop's kind:9005 handling. Agents
emit kind:9005 deletes via the CLI; without this, mobile keeps
rendering agent-deleted messages until manual refresh.
Two narrow mobile changes:
1. Add EventKind.nip29DeleteEvent (9005) to nostr_models.dart and
include it in channelEventKinds so the channel subscription and
history fetch both pick it up.
2. Teach formatTimeline's deletion walker to treat kind:9005 the same
as kind:5 — collect e-tag targets from both. Tag shape is identical
between the two builders so the walker is unmodified beyond the
kind check.
No mobile DM-notification path was found that mirrors desktop's
handleDmEvent → AppShell.handleDmNotification flow, so no DM kind-gating
fix is needed on mobile today.
Tests: timeline_message_test.dart adds a kind:9005 deletion case
mirroring the existing kind:5 test.
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>1 parent 5f9a426 commit 0f2bccd
3 files changed
Lines changed: 40 additions & 2 deletions
File tree
- mobile
- lib
- features/channels
- test/features/channels
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
218 | 222 | | |
219 | 223 | | |
220 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
91 | 108 | | |
92 | 109 | | |
93 | 110 | | |
| |||
311 | 328 | | |
312 | 329 | | |
313 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
314 | 346 | | |
315 | 347 | | |
316 | 348 | | |
| |||
0 commit comments