Recognizes focus user. Adds missing semicolons.

This commit is contained in:
paweldomas 2014-12-04 16:02:48 +01:00
parent 3c96c91ca8
commit 1729f7e17e
2 changed files with 6 additions and 5 deletions

9
app.js
View File

@ -765,17 +765,18 @@ $(document).bind('joined.muc', function (event, jid, info) {
$(document).bind('entered.muc', function (event, jid, info, pres) {
console.log('entered', jid, info);
messageHandler.notify(info.displayName || 'Somebody',
'connected',
'connected');
if (info.isFocus)
{
focusJid = jid;
console.info("Ignore focus: " + jid +", real JID: " + info.jid);
messageHandler.notify('Focus', 'connected', 'connected');
return;
}
messageHandler.notify(info.displayName || 'Somebody',
'connected',
'connected');
// Add Peer's container
var id = $(pres).find('>userID').text();
var email = $(pres).find('>email');

View File

@ -23,7 +23,7 @@ var VideoLayout = (function (my) {
my.changeLocalStream = function (stream) {
connection.jingle.localAudio = stream;
VideoLayout.changeLocalVideo(stream, true);
}
};
my.changeLocalAudio = function(stream) {
connection.jingle.localAudio = stream;