mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
Handle None state group correctly
This commit is contained in:
parent
23da638360
commit
619e8ecd0c
2 changed files with 7 additions and 4 deletions
|
@ -692,7 +692,10 @@ class _JoinedHostsCache(object):
|
|||
host = intern_string(get_domain_from_id(user_id))
|
||||
self.hosts_to_joined_users.setdefault(host, set()).add(user_id)
|
||||
|
||||
self.state_group = state_entry.state_group
|
||||
if state_entry.state_group:
|
||||
self.state_group = state_entry.state_group
|
||||
else:
|
||||
self.state_group = object()
|
||||
self._len = sum(len(v) for v in self.hosts_to_joined_users.itervalues())
|
||||
defer.returnValue(frozenset(self.hosts_to_joined_users))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue