Commit e68bb5e
committed
refactor chat list loading and folder synchronization
- remove redundant `chatFolders` update collection in `ChatsListRepositoryImpl` as it is handled elsewhere
- eliminate unnecessary initial `selectFolder` call in `DefaultChatListComponent` initialization
- simplify `isRequestActive` and folder ID validation checks with single-line returns
- remove manual client-side filtering of `includedChatIds` in `ChatListContent`, relying on the data layer for folder content
- refine shimmer logic in `ChatListContent` to prevent flickering by holding initial content during the first folder transition while loading1 parent 7b5aedd commit e68bb5e
3 files changed
Lines changed: 9 additions & 29 deletions
File tree
- data/src/main/java/org/monogram/data/repository
- presentation/src/main/java/org/monogram/presentation/features/chats/list
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | 310 | | |
318 | 311 | | |
319 | 312 | | |
| |||
638 | 631 | | |
639 | 632 | | |
640 | 633 | | |
641 | | - | |
642 | | - | |
643 | | - | |
| 634 | + | |
644 | 635 | | |
645 | 636 | | |
646 | 637 | | |
| |||
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
| |||
1104 | 1103 | | |
1105 | 1104 | | |
1106 | 1105 | | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
| 1106 | + | |
1113 | 1107 | | |
1114 | 1108 | | |
1115 | | - | |
1116 | 1109 | | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1117 | 1115 | | |
1118 | 1116 | | |
1119 | 1117 | | |
| |||
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
367 | 364 | | |
368 | 365 | | |
369 | 366 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | 367 | | |
375 | 368 | | |
376 | 369 | | |
| |||
405 | 398 | | |
406 | 399 | | |
407 | 400 | | |
408 | | - | |
409 | | - | |
410 | | - | |
| 401 | + | |
411 | 402 | | |
412 | 403 | | |
413 | 404 | | |
| |||
0 commit comments