mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 04:15:03 -04:00
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...
This commit is contained in:
parent
284fac379c
commit
437969eac9
3 changed files with 49 additions and 8 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue