Fixes the chat mode after a display name has been set through the local video UI. Fixes chat focus request.
This commit is contained in:
parent
cc887f4a8a
commit
2401935dbd
7
app.js
7
app.js
|
@ -1066,10 +1066,11 @@ function openChat() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Request the focus in the nickname field or the chat input field.
|
// Request the focus in the nickname field or the chat input field.
|
||||||
if ($('#nickinput').is(':visible'))
|
if ($('#nickname').css('visibility') == 'visible')
|
||||||
$('#nickinput').focus();
|
$('#nickinput').focus();
|
||||||
else
|
else {
|
||||||
$('#usermsg').focus();
|
$('#usermsg').focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1247,6 +1248,8 @@ function showDisplayName(videoSpanId, displayName) {
|
||||||
window.localStorage.displayname = nickname;
|
window.localStorage.displayname = nickname;
|
||||||
connection.emuc.addDisplayNameToPresence(nickname);
|
connection.emuc.addDisplayNameToPresence(nickname);
|
||||||
connection.emuc.sendPresence();
|
connection.emuc.sendPresence();
|
||||||
|
|
||||||
|
setChatConversationMode(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$('#localDisplayName').is(":visible")) {
|
if (!$('#localDisplayName').is(":visible")) {
|
||||||
|
|
Loading…
Reference in New Issue