Skip to content
Snippets Groups Projects
Commit e1f249ce authored by Emmanuel ROHEE's avatar Emmanuel ROHEE
Browse files

Implemented /nick

parent 67f42b2f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment