1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
This commit is contained in:
David Baker
2018-08-17 15:00:54 +01:00
parent 8b1fa72877
commit 0e3cb1977f

View File

@@ -455,7 +455,9 @@ function(roomId, includeMembership, excludeMembership, atEventId, callback) {
*/
MatrixBaseApis.prototype.upgradeRoom = function(roomId, newVersion) {
const path = utils.encodeUri("/rooms/$roomId/upgrade", {$roomId: roomId});
return this._http.authedRequest(undefined, "POST", path, undefined, {new_version: newVersion});
return this._http.authedRequest(
undefined, "POST", path, undefined, {new_version: newVersion},
);
};