diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-12 10:48:06 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-12 10:48:06 +0200 |
commit | d9343289045d4a733710706421ab528626cc02d4 (patch) | |
tree | f43995120776ac5127aae0865f2799b1b362b3c6 /webclient/components | |
parent | Show room name updates in room history and recents. (diff) | |
download | synapse-d9343289045d4a733710706421ab528626cc02d4.tar.xz |
Added edition of room name
Diffstat (limited to 'webclient/components')
-rw-r--r-- | webclient/components/matrix/matrix-service.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webclient/components/matrix/matrix-service.js b/webclient/components/matrix/matrix-service.js index 62aff091d4..68ef16800b 100644 --- a/webclient/components/matrix/matrix-service.js +++ b/webclient/components/matrix/matrix-service.js @@ -236,6 +236,13 @@ angular.module('matrixService', []) return doRequest("GET", path, undefined, {}); }, + setName: function(room_id, name) { + var data = { + name: name + }; + return this.sendStateEvent(room_id, "m.room.name", data); + }, + setTopic: function(room_id, topic) { var data = { topic: topic |