diff options
author | Matthew Hodgson <matthew@matrix.org> | 2014-09-23 18:50:39 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2014-09-23 18:50:39 +0100 |
commit | 437969eac9b2a53ae916e71e2a170e639e36d6de (patch) | |
tree | fa3012154451e90ecf1e8c3c0507222e946f4679 /webclient/components | |
parent | patch over another scenario whe we leak room IDs. i have *zero* idea why or ... (diff) | |
download | synapse-437969eac9b2a53ae916e71e2a170e639e36d6de.tar.xz |
use all new /rooms/<room id>/state to actually gather the state for rooms whenever join them. a bit ugly, as we don't currently have a nice place to gather housekeeping after joining a room, so horrible code duplication...
Diffstat (limited to 'webclient/components')
-rw-r--r-- | webclient/components/matrix/matrix-service.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webclient/components/matrix/matrix-service.js b/webclient/components/matrix/matrix-service.js index 79781f5d86..fba3923c78 100644 --- a/webclient/components/matrix/matrix-service.js +++ b/webclient/components/matrix/matrix-service.js @@ -264,7 +264,13 @@ angular.module('matrixService', []) return doRequest("GET", path, params); }, - + + // get room state for a specific room + roomState: function(room_id) { + var path = "/rooms/" + room_id + "/state"; + return doRequest("GET", path); + }, + // Joins a room join: function(room_id) { return this.membershipChange(room_id, undefined, "join"); |