Commit 1348a741 authored by Daniel Brötzmann's avatar Daniel Brötzmann

MucCapsCache: Add query for anonymity

This adds a query to determine whether a MUC is semi-anonymous or
non-anonymous.
parent e1bef611
Pipeline #3598 passed with stages
in 3 minutes and 32 seconds
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment