Merge pull request #3768 from krombel/fix_3445

fix #3445 - do not use itervalues() on SortedDict()
This commit is contained in:
Erik Johnston 2018-08-29 16:29:57 +01:00 committed by GitHub
commit 7f0399586d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
changelog.d/3768.bugfix Normal file
View file

@ -0,0 +1 @@
Fix bug in sending presence over federation

View file

@ -32,7 +32,7 @@ Events are replicated via a separate events stream.
import logging
from collections import namedtuple
from six import iteritems, itervalues
from six import iteritems
from sortedcontainers import SortedDict
@ -117,7 +117,7 @@ class FederationRemoteSendQueue(object):
user_ids = set(
user_id
for uids in itervalues(self.presence_changed)
for uids in self.presence_changed.values()
for user_id in uids
)