Commit a1157d2
committed
refactor(event cache): clarify warning when a pinned event couldn't be loaded
The previous warning could trigger with abnormal numbers, since there
could be related events applying to a pinned event, the `loaded_events`
list could be bigger than the list of `pinned_event_ids`, due to the
eager flattening. This patch makes it display the correct number, by
postponing the flattening after the warning.1 parent fcce02f commit a1157d2
File tree
1 file changed
+12
-3
lines changed- crates/matrix-sdk/src/event_cache/caches/pinned_events
1 file changed
+12
-3
lines changedLines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
483 | 485 | | |
484 | 486 | | |
485 | 487 | | |
| |||
500 | 502 | | |
501 | 503 | | |
502 | 504 | | |
503 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
504 | 512 | | |
| 513 | + | |
505 | 514 | | |
506 | 515 | | |
507 | 516 | | |
508 | 517 | | |
509 | | - | |
| 518 | + | |
510 | 519 | | |
511 | 520 | | |
512 | | - | |
| 521 | + | |
513 | 522 | | |
514 | 523 | | |
515 | 524 | | |
| |||
0 commit comments