summary refs log tree commit diff
path: root/webclient
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-29 18:24:13 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-29 18:24:13 +0200
commite1f249ce20caebf3882278f657102efa05941373 (patch)
tree58b31bc6965882122af12107dbb1a8ccaca64e87 /webclient
parentGet user display name and avatar from the server rather than storing them in ... (diff)
downloadsynapse-e1f249ce20caebf3882278f657102efa05941373.tar.xz
Implemented /nick
Diffstat (limited to '')
-rw-r--r--webclient/room/room-controller.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index ed7de62c08..23764fb725 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -253,6 +253,10 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
         if ($scope.textInput.indexOf("/me") === 0) {
             promise = matrixService.sendEmoteMessage($scope.room_id, $scope.textInput.substr(4));
         }
+        else if ($scope.textInput.indexOf("/nick ") === 0) {
+            // Change user display name
+            promise = matrixService.setDisplayName($scope.textInput.substr(6));
+        }
         else {
             promise = matrixService.sendTextMessage($scope.room_id, $scope.textInput);
         }