client: Only send device update messages if there were changed devices.

This commit is contained in:
Damir Jelić 2019-07-01 18:19:36 +02:00
parent f2415738f3
commit 6510bd7eb9

View File

@ -334,7 +334,8 @@ class PanClient(AsyncClient):
await self.history_fetch_queue.put(task)
async def keys_query_cb(self, response):
await self.send_update_devices(response.changed)
if response.changed:
await self.send_update_devices(response.changed)
def undecrypted_event_cb(self, room, event):
loop = asyncio.get_event_loop()