mirror of https://github.com/vector-im/riot-web
Fix nick changes
parent
006907e52f
commit
001372ec39
|
@ -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 New Issue