Skip to content

Commit 5168ebb

Browse files
committed
update to the latest schema
1 parent dc7bae4 commit 5168ebb

File tree

7 files changed

+358
-116
lines changed

7 files changed

+358
-116
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v24

__tests__/ring-call.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,16 @@ describe('ring call API', () => {
3535
});
3636

3737
it(`ring my-friend`, async () => {
38-
const response = await call.ring({ member_ids: ['my-friend'] });
39-
40-
// Dummy expect
41-
expect(response.call.id).toBe(callId);
38+
const response = await call.ring({ members_ids: ['my-friend'] });
39+
expect(response.members_ids).toEqual(['my-friend']);
4240
});
4341

4442
it(`ring my-other-friend`, async () => {
4543
await call.updateCallMembers({
4644
update_members: [{ user_id: 'my-other-friend' }],
4745
});
48-
const response = await call.ring({ member_ids: ['my-other-friend'] });
49-
50-
// Dummy expect
51-
expect(response.call.id).toBe(callId);
46+
const response = await call.ring({ members_ids: ['my-other-friend'] });
47+
expect(response.members_ids).toEqual(['my-other-friend']);
5248
});
5349

5450
it('delete call', async () => {

src/StreamCall.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ export class StreamCall extends CallApi {
2626

2727
create = (request?: GetOrCreateCallRequest) => this.getOrCreate(request);
2828

29-
ring = (params: { ring_by_id?: string; target_member_ids?: string[] }) => {
30-
return this.videoApi.getCall({
31-
...params,
32-
id: this.id,
33-
type: this.type,
34-
ring: true,
35-
});
36-
};
37-
3829
queryMembers = (request?: OmitTypeId<QueryCallMembersRequest>) => {
3930
return this.videoApi.queryCallMembers({
4031
id: this.id,

0 commit comments

Comments
 (0)