Philipp Hörist pushed to branch master at gajim / gajim


Commits:
1348a741 by Daniel Brötzmann at 2019-06-13T15:23:38Z
MucCapsCache: Add query for anonymity

This adds a query to determine whether a MUC is semi-anonymous or
non-anonymous.

- - - - -


1 changed file:

- gajim/common/caps_cache.py


Changes:

=====================================
gajim/common/caps_cache.py
=====================================
@@ -505,6 +505,9 @@ class MucCapsCache:
                     pass
         return allowed
 
+    def is_anonymous(self, jid):
+        return 'muc_nonanonymous' not in self.cache[jid].features
+
     def get_room_infos(self, jid):
         room_info = {}
         if jid in self.cache:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/1348a741fd2dd24bc285525b022070c374981d9f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/1348a741fd2dd24bc285525b022070c374981d9f
You're receiving this email because of your account on dev.gajim.org.

_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to