Pārlūkot izejas kodu

removed USER_ID_CHANGED event

dev1
isymchych 9 gadus atpakaļ
vecāks
revīzija
6f10dbfd10
2 mainītis faili ar 0 papildinājumiem un 8 dzēšanām
  1. 0
    3
      modules/xmpp/ChatRoom.js
  2. 0
    5
      service/xmpp/XMPPEvents.js

+ 0
- 3
modules/xmpp/ChatRoom.js Parādīt failu

@@ -333,9 +333,6 @@ ChatRoom.prototype.onPresence = function (pres) {
333 333
         }
334 334
     }
335 335
 
336
-    if(!member.isFocus)
337
-        this.eventEmitter.emit(XMPPEvents.USER_ID_CHANGED, from, member.id);
338
-
339 336
     // Trigger status message update
340 337
     if (member.status) {
341 338
         this.eventEmitter.emit(XMPPEvents.PRESENCE_STATUS, from, member.status);

+ 0
- 5
service/xmpp/XMPPEvents.js Parādīt failu

@@ -13,11 +13,6 @@ var XMPPEvents = {
13 13
     CALL_INCOMING: "xmpp.callincoming.jingle",
14 14
     // Designates an event indicating that we were kicked from the XMPP MUC.
15 15
     KICKED: "xmpp.kicked",
16
-    // Designates an event indicating that the userID for a specific JID has
17
-    // changed.
18
-    // Note: currently this event fires every time we receive presence from
19
-    // someone (regardless of whether or not the "userID" changed).
20
-    USER_ID_CHANGED: "xmpp.user_id_changed",
21 16
     // Designates an event indicating that we have joined the XMPP MUC.
22 17
     MUC_JOINED: "xmpp.muc_joined",
23 18
     // Designates an event indicating that a participant joined the XMPP MUC.

Notiek ielāde…
Atcelt
Saglabāt