Repository navigation
Commit 6292d3b
fix(mobile): a retried share-import cancel keeps later draft edits
restoreDraft shows the backup before it persists it. When persisting
failed, the import still needed a restore, so retrying the cancel put
the backup back over whatever the draft held by then: an edit made after
the restore appeared was lost, and a deleted draft came back. A cancel
now restores only over the draft the import's merge left, or re-persists
a backup that is already showing. Any other draft is left as the user
left it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent d294836 commit 6292d3b
2 files changed
Lines changed: 60 additions & 6 deletions
File tree
- apps/mobile/src/features/threads
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
229 | 264 | | |
230 | 265 | | |
231 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
118 | 128 | | |
119 | 129 | | |
120 | 130 | | |
| |||
206 | 216 | | |
207 | 217 | | |
208 | 218 | | |
| 219 | + | |
209 | 220 | | |
210 | 221 | | |
211 | 222 | | |
212 | 223 | | |
213 | 224 | | |
| 225 | + | |
214 | 226 | | |
215 | 227 | | |
216 | 228 | | |
| |||
283 | 295 | | |
284 | 296 | | |
285 | 297 | | |
| 298 | + | |
286 | 299 | | |
287 | 300 | | |
288 | 301 | | |
| |||
303 | 316 | | |
304 | 317 | | |
305 | 318 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
311 | 331 | | |
312 | | - | |
313 | 332 | | |
314 | 333 | | |
315 | 334 | | |
| |||
0 commit comments