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

Add getMediaLimits to client #644

Merged
merged 4 commits into from
Sep 26, 2018
Merged

Conversation

Half-Shot
Copy link
Contributor

@Half-Shot Half-Shot commented May 3, 2018

src/client.js Outdated
@@ -727,6 +727,20 @@ MatrixClient.prototype.getGroups = function() {
return this.store.getGroups();
};

/**
* Get the room for the given room ID.
Copy link
Member

Choose a reason for hiding this comment

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

ahem

src/client.js Outdated
* @param {module:client.callback} callback Optional.
* @return {module:client.Promise} Resolves with an object containing the limits.
*/
MatrixClient.prototype.getMediaLimits = function(callback) {
Copy link
Member

Choose a reason for hiding this comment

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

This should probably just be getMediaRepoConfiguration or something, given the opportunity for future expansion.

Copy link
Member

Choose a reason for hiding this comment

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

+++1 for magic this super generic

@Half-Shot Half-Shot requested a review from a team August 30, 2018 10:58
@Half-Shot
Copy link
Contributor Author

Aaaaaanyone? :(

@turt2live turt2live merged commit 40f2a69 into matrix-org:master Sep 26, 2018
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.

3 participants