Commit 0847045
committed
Remove unused pageSize from enableLoadMore
Pagination offset (the distance from the top message before we start
loading more) used to be determined by the offset parameter passed to
enableLoadMore, like so:
if ids.prefix(offset + 1).contains(message.id) {
onEvent?(message)
}
This got changed in 568d00d. Now, we
rely on paginationTargetIndexPath instead, which is hardcoded to be the
last already loaded message:
IndexPath(row: lastSection.rows.count - 1, section: sections.count - 1)
As a result, pageSize is no longer used. Remove it to make sure that
consumers do not expect different behaviour when they modify the
parameter.1 parent 61851e7 commit 0847045
4 files changed
Lines changed: 6 additions & 8 deletions
File tree
- ChatExample/ChatExample/Screens
- Sources/ExyteChat
- Managers
- Views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| |||
0 commit comments