mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 12:58:53 +03:00
Fix nick changes
This commit is contained in:
parent
006907e52f
commit
001372ec39
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ var commands = {
|
||||||
// Change your nickname
|
// Change your nickname
|
||||||
nick: function(room_id, args) {
|
nick: function(room_id, args) {
|
||||||
if (args) {
|
if (args) {
|
||||||
return MatrixClientPeg.get().setDisplayName(args);
|
return success(
|
||||||
|
MatrixClientPeg.get().setDisplayName(args)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return reject("Usage: /nick <display_name>");
|
return reject("Usage: /nick <display_name>");
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue