Commit 306748fe authored by JC Brand's avatar JC Brand

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

It was in any case setting the wrong key, should've been `nick`
parent 3d3738f3
...@@ -891,10 +891,7 @@ converse.plugins.add('converse-muc-views', { ...@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment