summary refs log tree commit diff
path: root/webclient/components
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-12 10:48:06 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-12 10:48:06 +0200
commitd9343289045d4a733710706421ab528626cc02d4 (patch)
treef43995120776ac5127aae0865f2799b1b362b3c6 /webclient/components
parentShow room name updates in room history and recents. (diff)
downloadsynapse-d9343289045d4a733710706421ab528626cc02d4.tar.xz
Added edition of room name
Diffstat (limited to 'webclient/components')
-rw-r--r--webclient/components/matrix/matrix-service.js7
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