-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
Conversation
6fe95d1
to
9596087
Compare
src/client.js
Outdated
@@ -727,6 +727,20 @@ MatrixClient.prototype.getGroups = function() { | |||
return this.store.getGroups(); | |||
}; | |||
|
|||
/** | |||
* Get the room for the given room ID. |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Aaaaaanyone? :( |
Part of matrix-org/matrix-spec-proposals#1189 and matrix-org/synapse#3184