Переглянути джерело

Recognizes focus user. Adds missing semicolons.

j8
paweldomas 11 роки тому
джерело
коміт
1729f7e17e
2 змінених файлів з 6 додано та 5 видалено
  1. 5
    4
      app.js
  2. 1
    1
      videolayout.js

+ 5
- 4
app.js Переглянути файл

@@ -765,17 +765,18 @@ $(document).bind('joined.muc', function (event, jid, info) {
765 765
 
766 766
 $(document).bind('entered.muc', function (event, jid, info, pres) {
767 767
     console.log('entered', jid, info);
768
-    messageHandler.notify(info.displayName || 'Somebody',
769
-        'connected',
770
-        'connected');
771
-
772 768
     if (info.isFocus)
773 769
     {
774 770
         focusJid = jid;
775 771
         console.info("Ignore focus: " + jid +", real JID: " + info.jid);
772
+        messageHandler.notify('Focus', 'connected', 'connected');
776 773
         return;
777 774
     }
778 775
 
776
+    messageHandler.notify(info.displayName || 'Somebody',
777
+        'connected',
778
+        'connected');
779
+
779 780
     // Add Peer's container
780 781
     var id = $(pres).find('>userID').text();
781 782
     var email = $(pres).find('>email');

+ 1
- 1
videolayout.js Переглянути файл

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

Завантаження…
Відмінити
Зберегти