From d9343289045d4a733710706421ab528626cc02d4 Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Fri, 12 Sep 2014 10:48:06 +0200 Subject: Added edition of room name --- webclient/components/matrix/matrix-service.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'webclient/components') 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 -- cgit 1.4.1