Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Support homeserver-configured integration managers #3340

Merged
merged 3 commits into from
Aug 27, 2019

Conversation

turt2live
Copy link
Member

@turt2live turt2live requested a review from a team August 22, 2019 20:52
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

Lgtm! just one question...

try {
console.log("Updating homeserver-configured integration managers...");
const homeserverDomain = MatrixClientPeg.getHomeserverName();
const discoveryResponse = await AutoDiscovery.getRawClientConfig(homeserverDomain);
Copy link
Contributor

Choose a reason for hiding this comment

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

This will do it's own .well-known request, right?
Is there no way here to re-use the response of the .well-known response request to determine the homeserver?

Copy link
Member Author

Choose a reason for hiding this comment

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

It does do a .well-known request, and the existing response from the homeserver isn't really able to be reused. The .well-known for the homeserver is done so early in the process that we don't have a clean/reliable way to get it all the way over here, and we need to update this information periodically.

@turt2live
Copy link
Member Author

(I am hoping that answers your question - if not, I can try and answer better and/or make additional PRs)

@turt2live turt2live merged commit 971e1ac into develop Aug 27, 2019
@turt2live turt2live deleted the travis/homeserver-managers branch August 27, 2019 15:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option for homeservers to set a default integration manager
2 participants