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

Refresh joined rooms when enabling crypto #281

Merged
merged 2 commits into from
Dec 19, 2022
Merged

Refresh joined rooms when enabling crypto #281

merged 2 commits into from
Dec 19, 2022

Conversation

AndrewFerr
Copy link
Contributor

When enabling crypto on an Intent, refresh its list of joined rooms, as it's used to determine which rooms to watch for crypto updates.

This fixes an issue where a restart would cause Intents to lose track of which rooms they were joined to, unless the list is refreshed either manually or in response to a membership event.

Checklist

  • Tests written for all new code
  • Linter has been satisfied
  • Sign-off given on the changes (see CONTRIBUTING.md)

When enabling crypto on an Intent, refresh its list of joined rooms,
as it's used to determine which rooms to watch for crypto updates.

This fixes an issue where a restart would cause Intents to lose track of
which rooms they were joined to, until the list is refreshed either
manually or in response to a membership event.

Signed-off-by: Andrew Ferrazzutti <[email protected]>
src/appservice/Intent.ts Outdated Show resolved Hide resolved
Copy link
Owner

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

thanks :)

@turt2live turt2live merged commit 7b74b2d into turt2live:main Dec 19, 2022
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