Commit 2fff9ef
committed
fix(send): sync contacts on in-list grant and fix on-Flipcash scroll offset
- Keep the contacts permission gate visible until the full sync completes
(via ContactSyncComplete) instead of advancing the moment device contacts
land. Advancing early rendered the list before on-Flipcash contacts were
fetched, then prepended them above the viewport once they arrived — pushing
them offscreen so the user had to scroll up.
- Dispatch ContactsGranted when the user allows access from the in-list
rationale card so the contact sync fires, mirroring the gate.
- Hoist ContactAccessHandle out of ContactList; the screen now owns the single
handle and wires both Granted (sync) and Picked (add contacts).
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent 4de0738 commit 2fff9ef
3 files changed
Lines changed: 25 additions & 8 deletions
File tree
- apps/flipcash/features/direct-send/src/main/kotlin/com/flipcash/app/directsend/internal/screens
- components
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
| |||
161 | 172 | | |
162 | 173 | | |
163 | 174 | | |
| 175 | + | |
164 | 176 | | |
165 | | - | |
166 | 177 | | |
167 | 178 | | |
168 | 179 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
81 | 89 | | |
82 | | - | |
| 90 | + | |
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
| |||
188 | 185 | | |
189 | 186 | | |
190 | 187 | | |
191 | | - | |
| 188 | + | |
192 | 189 | | |
193 | 190 | | |
194 | 191 | | |
| |||
563 | 560 | | |
564 | 561 | | |
565 | 562 | | |
| 563 | + | |
566 | 564 | | |
567 | 565 | | |
0 commit comments