Explorar el Código

Allows unavailable presences to contain a ignore tag.

If we detect a custom <ignore tag in presence unavailable we ignore those presences and do not process them.
dev1
damencho hace 8 años
padre
commit
d6d2d82d2d
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      modules/xmpp/ChatRoom.js

+ 5
- 0
modules/xmpp/ChatRoom.js Ver fichero

@@ -618,6 +618,11 @@ export default class ChatRoom extends Listenable {
618 618
      * @param from
619 619
      */
620 620
     onPresenceUnavailable(pres, from) {
621
+        // ignore presence
622
+        if ($(pres).find('>ignore[xmlns="http://jitsi.org/jitmeet/"]').length) {
623
+            return true;
624
+        }
625
+
621 626
         // room destroyed ?
622 627
         if ($(pres).find('>x[xmlns="http://jabber.org/protocol/muc#user"]'
623 628
             + '>destroy').length) {

Loading…
Cancelar
Guardar