From 2401935dbd5f53a33cebae2b20553a4640d6142e Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Tue, 11 Feb 2014 16:27:49 +0100 Subject: [PATCH] Fixes the chat mode after a display name has been set through the local video UI. Fixes chat focus request. --- app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index a253182f9..8b84c7d96 100644 --- a/app.js +++ b/app.js @@ -1066,10 +1066,11 @@ function openChat() { } // Request the focus in the nickname field or the chat input field. - if ($('#nickinput').is(':visible')) + if ($('#nickname').css('visibility') == 'visible') $('#nickinput').focus(); - else + else { $('#usermsg').focus(); + } } /* @@ -1247,6 +1248,8 @@ function showDisplayName(videoSpanId, displayName) { window.localStorage.displayname = nickname; connection.emuc.addDisplayNameToPresence(nickname); connection.emuc.sendPresence(); + + setChatConversationMode(true); } if (!$('#localDisplayName').is(":visible")) {