Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Message list pagination implementation using hasPrev and hasNext #2799

Merged
merged 19 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
88d12f9
refactor: remove stale subscriber count logic and types refactor (#2782)
khushal87 Nov 18, 2024
4144ec1
Merge branch 'message-pagination' of github.com:GetStream/stream-chat…
khushal87 Nov 18, 2024
8ec3253
feat: new message list pagination implementation
khushal87 Nov 19, 2024
deaf359
fix: channel state initial data
khushal87 Nov 20, 2024
bc98c8f
fix: revert back the onStartReached change
khushal87 Nov 20, 2024
74dfcf1
fix: lint and tests
khushal87 Nov 20, 2024
64818b6
fix: added tests for the hooks and message pagination
khushal87 Nov 22, 2024
078ad3c
Merge branch 'v6.0.0' of github.com:GetStream/stream-chat-react-nativ…
khushal87 Nov 22, 2024
24664a9
Merge branch 'message-pagination' of github.com:GetStream/stream-chat…
khushal87 Nov 22, 2024
c124070
fix: podlock file for sample app
khushal87 Nov 22, 2024
b2f9ea7
Merge branch 'v6.0.0' of github.com:GetStream/stream-chat-react-nativ…
khushal87 Nov 22, 2024
df28d8e
Merge branch 'v6.0.0' of github.com:GetStream/stream-chat-react-nativ…
khushal87 Nov 22, 2024
57d4a41
Merge branch 'v6.0.0' of github.com:GetStream/stream-chat-react-nativ…
khushal87 Nov 26, 2024
aa353f1
fix: throttle logic for the copy message state
khushal87 Nov 26, 2024
5a9f785
fix: add back channel.deleted event
khushal87 Dec 2, 2024
fd9c5f5
Merge branch 'v6.0.0' of github.com:GetStream/stream-chat-react-nativ…
khushal87 Dec 3, 2024
c5bad92
Merge branch 'message-pagination' of github.com:GetStream/stream-chat…
khushal87 Dec 3, 2024
9af9290
fix: useeffect deps
khushal87 Dec 6, 2024
f950b41
chore: resolve conflicts
khushal87 Dec 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion examples/SampleApp/src/ChatUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const USER_TOKENS: Record<string, string> = {
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZTJldGVzdDIifQ.2ZsHCMJ7i0vZvRJ5yoT-bm8OD_KAzBgJ-kB6bHGZ4FI',
e2etest3:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZTJldGVzdDMifQ.RWHY-MYkpP8FTJkfgrxUlCQhwap6eB7DTsp_HsZ1oIw',
khushal:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoia2h1c2hhbCJ9.NG3b6I8MgkLevwuTTqDXTpOol-Yj_1NCyvxewL_tg4U',
neil: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoibmVpbCJ9.ty2YhwFaVEYkq1iUfY8s1G0Um3MpiVYpWK-b5kMky0w',
qatest1:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoicWF0ZXN0MSJ9.5Nnj6MsauhjP7_D8jW9WbRovLv5uaxn8LPZZ-HB3mh4',
Expand Down Expand Up @@ -41,7 +43,11 @@ export const USERS: Record<string, UserResponse<StreamChatGenerics>> = {
image: 'https://randomuser.me/api/portraits/thumb/men/11.jpg',
name: 'QA Test 2',
},

khushal: {
id: 'khushal',
image: 'https://ca.slack-edge.com/T02RM6X6B-U02DTREQ2KX-41639a005d53-512',
name: 'Khushal Agarwal',
},
thierry: {
id: 'thierry',
image: 'https://ca.slack-edge.com/T02RM6X6B-U02RM6X6D-g28a1278a98e-512',
Expand Down
Loading
Loading