Fix nick changes

This commit is contained in:
Kegan Dougal 2015-07-17 11:13:05 +01:00
parent 006907e52f
commit 001372ec39

View File

@ -35,7 +35,9 @@ var commands = {
// Change your nickname
nick: function(room_id, args) {
if (args) {
return MatrixClientPeg.get().setDisplayName(args);
return success(
MatrixClientPeg.get().setDisplayName(args)
);
}
return reject("Usage: /nick <display_name>");
},