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

Prepare delayed call leave events more reliably #4447

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

AndrewFerr
Copy link
Member

  • Try sending call join after preparing delayed leave
  • On leave, send delayed leave instead of a new event

Signed-off-by: Andrew Ferrazzutti andrewf@element.io

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

- Try sending call join after preparing delayed leave
- On leave, send delayed leave instead of a new event
);
} catch (e) {
// TODO: Retry if rate-limited
if ((<MatrixError>e).errcode === "M_NOT_FOUND") {
Copy link
Member Author

Choose a reason for hiding this comment

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

This doesn't work in embedded mode! The widget API apparently doesn't preserve the errcode or HTTP response code...

Copy link
Member

Choose a reason for hiding this comment

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

Might be worth a comment in-code then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants