Skip to content

Commit 6975abe

Browse files
authored
feat: Message list pagination implementation using hasPrev and hasNext (#2799)
* refactor: remove stale subscriber count logic and types refactor (#2782) * feat: new message list pagination implementation * fix: channel state initial data * fix: revert back the onStartReached change * fix: lint and tests * fix: added tests for the hooks and message pagination * fix: podlock file for sample app * fix: throttle logic for the copy message state * fix: add back channel.deleted event * fix: useeffect deps
1 parent 9692f1a commit 6975abe

File tree

17 files changed

+1685
-1058
lines changed

17 files changed

+1685
-1058
lines changed

examples/SampleApp/src/ChatUsers.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export const USER_TOKENS: Record<string, string> = {
88
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZTJldGVzdDIifQ.2ZsHCMJ7i0vZvRJ5yoT-bm8OD_KAzBgJ-kB6bHGZ4FI',
99
e2etest3:
1010
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZTJldGVzdDMifQ.RWHY-MYkpP8FTJkfgrxUlCQhwap6eB7DTsp_HsZ1oIw',
11+
khushal:
12+
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoia2h1c2hhbCJ9.NG3b6I8MgkLevwuTTqDXTpOol-Yj_1NCyvxewL_tg4U',
1113
neil: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoibmVpbCJ9.ty2YhwFaVEYkq1iUfY8s1G0Um3MpiVYpWK-b5kMky0w',
1214
qatest1:
1315
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoicWF0ZXN0MSJ9.5Nnj6MsauhjP7_D8jW9WbRovLv5uaxn8LPZZ-HB3mh4',
@@ -41,7 +43,11 @@ export const USERS: Record<string, UserResponse<StreamChatGenerics>> = {
4143
image: 'https://randomuser.me/api/portraits/thumb/men/11.jpg',
4244
name: 'QA Test 2',
4345
},
44-
46+
khushal: {
47+
id: 'khushal',
48+
image: 'https://ca.slack-edge.com/T02RM6X6B-U02DTREQ2KX-41639a005d53-512',
49+
name: 'Khushal Agarwal',
50+
},
4551
thierry: {
4652
id: 'thierry',
4753
image: 'https://ca.slack-edge.com/T02RM6X6B-U02RM6X6D-g28a1278a98e-512',

0 commit comments

Comments
 (0)