mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Merge pull request #3768 from krombel/fix_3445
fix #3445 - do not use itervalues() on SortedDict()
This commit is contained in:
commit
7f0399586d
1
changelog.d/3768.bugfix
Normal file
1
changelog.d/3768.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix bug in sending presence over federation
|
@ -32,7 +32,7 @@ Events are replicated via a separate events stream.
|
|||||||
import logging
|
import logging
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
from six import iteritems, itervalues
|
from six import iteritems
|
||||||
|
|
||||||
from sortedcontainers import SortedDict
|
from sortedcontainers import SortedDict
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ class FederationRemoteSendQueue(object):
|
|||||||
|
|
||||||
user_ids = set(
|
user_ids = set(
|
||||||
user_id
|
user_id
|
||||||
for uids in itervalues(self.presence_changed)
|
for uids in self.presence_changed.values()
|
||||||
for user_id in uids
|
for user_id in uids
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user