Commit 931a499
committed
Fix occasional crash after adding a contact
Sometimes, the coroutine adding the contact to the database wouldn't
have finished before we navigated to the chat for the new contact,
leading to a crash. Now we wait until that coroutine is done before
navigating.
This crash could easily be reproduced by adding a delay(1000) to
`ContactManager::add`.1 parent 3074a36 commit 931a499
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
0 commit comments