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:
parent
3d3738f3be
commit
306748feb0
@ -891,10 +891,7 @@ converse.plugins.add('converse-muc-views', {
|
|||||||
submitNickname (ev) {
|
submitNickname (ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
const nick = ev.target.nick.value.trim();
|
const nick = ev.target.nick.value.trim();
|
||||||
if (nick) {
|
nick && this.model.join(nick);
|
||||||
this.model.join(nick);
|
|
||||||
this.model.set({'nickname': nick});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onKeyDown (ev) {
|
onKeyDown (ev) {
|
||||||
|
Loading…
Reference in New Issue
Block a user