Use a for loop instead of map in the join info event.
map returns an iterator on python3, the function won't get executed unless we ask for the result, since the function doesn't return a result we'll use a for loop instead of complicating things unnecessarily.
This commit is contained in:
parent
f247daf51d
commit
cd2788553c
1 changed files with 2 additions and 1 deletions
|
@ -425,7 +425,8 @@ class MatrixSyncEvent(MatrixEvent):
|
||||||
server.sync()
|
server.sync()
|
||||||
return
|
return
|
||||||
|
|
||||||
map(self._execute_joined_info, self.joined_room_infos)
|
for room_info in self.joined_room_infos:
|
||||||
|
self._execute_joined_info(room_info)
|
||||||
|
|
||||||
server.next_batch = self.next_batch
|
server.next_batch = self.next_batch
|
||||||
server.sync()
|
server.sync()
|
||||||
|
|
Loading…
Add table
Reference in a new issue