mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix nick changes
This commit is contained in:
parent
006907e52f
commit
001372ec39
@ -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>");
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user