Repository navigation
Commit b503c21
committed
fix(telegram): retain preview message on generation mismatch race
Fixes #85807
When forceNewMessage() races with an in-flight Telegram preview send,
the generation-mismatch path in draft-stream.ts was deleting the
successfully sent message instead of retaining it.
Added `retain: true` to the onSupersededPreview call in the
generation-mismatch block, matching the behavior already used by
the text-splitting superseded path at line 215-220.
Test updated to verify retain field is set correctly.1 parent c96fc45 commit b503c21
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
0 commit comments