Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid call.get in all call.ring events #1615

Merged
merged 1 commit into from
Dec 9, 2024
Merged

fix: avoid call.get in all call.ring events #1615

merged 1 commit into from
Dec 9, 2024

Conversation

santhoshvai
Copy link
Member

@santhoshvai santhoshvai commented Dec 9, 2024

As per spec

When the event is received, you need to ensure there is a WS connection open. If the connection needs to be opened, you also need to call call.get to fetch the latest state of the call object

Avoids confusion on support where users logging callingstate inform that they get left before ringing state

Comment on lines +611 to +615
if (!creator) {
this.state.setMembers(event.members);
} else {
this.state.setMembers([creator, ...event.members]);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively we could skip setting members altogether because call.created event already would have set members

@santhoshvai santhoshvai merged commit c757370 into main Dec 9, 2024
19 of 20 checks passed
@santhoshvai santhoshvai deleted the ring-get branch December 9, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants