muc-views: no need to set nickname before calling join

It was in any case setting the wrong key, should've been `nick`
This commit is contained in:
JC Brand 2019-12-09 16:54:50 +01:00
parent 3d3738f3be
commit 306748feb0

View File

@ -891,10 +891,7 @@ converse.plugins.add('converse-muc-views', {
submitNickname (ev) {
ev.preventDefault();
const nick = ev.target.nick.value.trim();
if (nick) {
this.model.join(nick);
this.model.set({'nickname': nick});
}
nick && this.model.join(nick);
},
onKeyDown (ev) {