Commit 8c18aa9
committed
fix: app hang on attach contact sometimes
Closes #5723.
It seems that sometimes this causes front-end to basically
infinitely spam the backend with `get_contacts_by_ids`.
`isContactLoaded` also starts returning `true`
as soon as we have started loading a contact,
and not only when we have loaded it.
This might not completely fix such a potential bug,
but this should at least make it not happen in practice.
This bug has likely been surfaced by
9bb605c
(#5581).1 parent dc92a40 commit 8c18aa9
File tree
1 file changed
+3
-10
lines changed- packages/frontend/src/components/dialogs/SelectContact
1 file changed
+3
-10
lines changedLines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 72 | + | |
80 | 73 | | |
81 | 74 | | |
82 | 75 | | |
| |||
0 commit comments