refactor(GroupMembersScreen): enhance member list management with remote data source
- Introduced a new remote data source for managing group members using cursor pagination. - Updated member list loading logic to utilize the new data source, improving data synchronization and loading states. - Enhanced member enrichment process by integrating user profiles into the member list. - Refactored related imports and hooks for better organization and clarity.
This commit is contained in:
@@ -571,7 +571,7 @@ class MessageService {
|
||||
try {
|
||||
const response = await api.get<CursorPaginationResponse<ConversationResponse>>(
|
||||
'/conversations/cursor',
|
||||
{ params }
|
||||
params
|
||||
);
|
||||
const raw = response.data;
|
||||
return {
|
||||
@@ -604,7 +604,7 @@ class MessageService {
|
||||
try {
|
||||
const response = await api.get<any>(
|
||||
`/conversations/${encodeURIComponent(conversationId)}/messages/cursor`,
|
||||
{ params }
|
||||
params
|
||||
);
|
||||
const raw = response.data;
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user