瀏覽代碼

removed USER_ID_CHANGED event

dev1
isymchych 9 年之前
父節點
當前提交
6f10dbfd10
共有 2 個文件被更改,包括 0 次插入8 次删除
  1. 0
    3
      modules/xmpp/ChatRoom.js
  2. 0
    5
      service/xmpp/XMPPEvents.js

+ 0
- 3
modules/xmpp/ChatRoom.js 查看文件

333
         }
333
         }
334
     }
334
     }
335
 
335
 
336
-    if(!member.isFocus)
337
-        this.eventEmitter.emit(XMPPEvents.USER_ID_CHANGED, from, member.id);
338
-
339
     // Trigger status message update
336
     // Trigger status message update
340
     if (member.status) {
337
     if (member.status) {
341
         this.eventEmitter.emit(XMPPEvents.PRESENCE_STATUS, from, member.status);
338
         this.eventEmitter.emit(XMPPEvents.PRESENCE_STATUS, from, member.status);

+ 0
- 5
service/xmpp/XMPPEvents.js 查看文件

13
     CALL_INCOMING: "xmpp.callincoming.jingle",
13
     CALL_INCOMING: "xmpp.callincoming.jingle",
14
     // Designates an event indicating that we were kicked from the XMPP MUC.
14
     // Designates an event indicating that we were kicked from the XMPP MUC.
15
     KICKED: "xmpp.kicked",
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
     // Designates an event indicating that we have joined the XMPP MUC.
16
     // Designates an event indicating that we have joined the XMPP MUC.
22
     MUC_JOINED: "xmpp.muc_joined",
17
     MUC_JOINED: "xmpp.muc_joined",
23
     // Designates an event indicating that a participant joined the XMPP MUC.
18
     // Designates an event indicating that a participant joined the XMPP MUC.

Loading…
取消
儲存