Skip to content

Commit 6f282b1

Browse files
committed
fix: call creator isn't always the ringing initiator
1 parent 1ac9ba2 commit 6f282b1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/client/src/StreamVideoClient.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,6 @@ export class StreamVideoClient {
207207
this.eventHandlersToUnregister.push(
208208
this.on('call.ring', async (event) => {
209209
const { call, members } = event;
210-
if (this.state.connectedUser?.id === call.created_by.id) {
211-
this.logger(
212-
'debug',
213-
'Received `call.ring` sent by the current user so ignoring the event',
214-
);
215-
return;
216-
}
217210
// if `call.created` was received before `call.ring`.
218211
// the client already has the call instance and we just need to update the state
219212
const theCall = this.writeableStateStore.findCall(call.type, call.id);
@@ -360,6 +353,7 @@ export class StreamVideoClient {
360353
*
361354
* @param type the type of the call.
362355
* @param id the id of the call.
356+
* @param options additional options for the call.
363357
*/
364358
call = (
365359
type: string,

0 commit comments

Comments
 (0)