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

Change call event handlers to adapt to undecrypted events #1698

Merged
merged 4 commits into from
May 19, 2021

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented May 19, 2021

Fixes element-hq/element-web#17393
Regressed by #1684

The call event handler was expecting all messages to be decrypted or in the process of being decrypted and would not process any call events until everything has been processed.

The fix is to ignore all historical data by setting the listeners only after initial client sync

@germain-gg germain-gg requested a review from a team May 19, 2021 14:44
@SimonBrandner
Copy link
Contributor

Fixes #17393

src/client.js Show resolved Hide resolved
src/webrtc/callEventHandler.ts Outdated Show resolved Hide resolved
@germain-gg germain-gg requested a review from dbkr May 19, 2021 16:06
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

lgtm!

@germain-gg germain-gg merged commit f346cd6 into develop May 19, 2021
@germain-gg germain-gg deleted the gsouquet/fix-call-handlers branch May 19, 2021 16:23
@SimonBrandner
Copy link
Contributor

I suppose this should be sent to release, right?

@jryans
Copy link
Collaborator

jryans commented May 19, 2021

I suppose this should be sent to release, right?

Yes, I'll work on that now.

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.

VoIP events sometimes not making it to CallEventHandler?
5 participants