Skip to content

Conversation

@progval
Copy link
Contributor

@progval progval commented Mar 11, 2023

This will be useful for tests in #1683

This will be useful for tests
@progval progval requested a review from a team as a code owner March 11, 2023 19:57
@progval
Copy link
Contributor Author

progval commented Mar 11, 2023

Signed-off-by: Valentin Lorentz <progval plus matrixsignoff at progval dot net>

});
if (config.ircService.bridgeInfoState.initial) {
const mappings = await this.dataStore.getAllChannelMappings();
this.bridgeStateSyncer.initialSync(mappings).then(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this is a subtle-y expensive operation that might be a bit surprising on reload. I think if the config hasn't changed, we shouldn't attempt a resync.

I'm slightly more open to a resync if initial has changed.

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

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

LGTM, will merge in a bit.

@Half-Shot Half-Shot merged commit dc5141a into matrix-org:develop Apr 26, 2023
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