Skip to content

Commit

Permalink
fix: fixed participants api
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 committed Nov 30, 2023
1 parent 645d564 commit 5a94274
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/restapi/src/lib/pushapi/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
import { User } from './user';
import { updateGroupConfig } from '../chat/updateGroupConfig';
import { PushAPI } from './PushAPI';
import { ParticipantsType } from './participant';

export class Chat {
private userInstance: User;
Expand Down Expand Up @@ -326,11 +325,13 @@ export class Chat {
chatId: string,
options?: GetGroupParticipantsOptions
): Promise<{ members: ChatMemberProfile[] }> => {
const { page = 1, limit = 20 } = options ?? {};
const { page = 1, limit = 20,filter={pending:undefined,role:undefined} } = options ?? {};
const getGroupMembersOptions: PUSH_CHAT.FetchChatGroupInfoType = {
chatId,
page,
limit,
pending:filter.pending,
role:filter.role,
env: this.env,
};

Expand Down

0 comments on commit 5a94274

Please sign in to comment.