mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 01:40:20 +00:00
Implemented /nick
This commit is contained in:
parent
67f42b2f26
commit
e1f249ce20
1 changed files with 4 additions and 0 deletions
|
@ -253,6 +253,10 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
|
||||||
if ($scope.textInput.indexOf("/me") === 0) {
|
if ($scope.textInput.indexOf("/me") === 0) {
|
||||||
promise = matrixService.sendEmoteMessage($scope.room_id, $scope.textInput.substr(4));
|
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 {
|
else {
|
||||||
promise = matrixService.sendTextMessage($scope.room_id, $scope.textInput);
|
promise = matrixService.sendTextMessage($scope.room_id, $scope.textInput);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue