Fix local echo

This commit is contained in:
miruka 2020-03-15 17:31:10 -04:00
parent 8a99ccd976
commit faaa5933d4

View File

@ -1186,7 +1186,7 @@ class MatrixClient(nio.AsyncClient):
) )
local_sender = ev.sender in self.backend.clients local_sender = ev.sender in self.backend.clients
if local_sender and tx_id and tx_id in model: if local_sender and tx_id and f"echo-{tx_id}" in model:
item.id = f"echo-{tx_id}" item.id = f"echo-{tx_id}"
if not local_sender and not await self.event_is_past(ev): if not local_sender and not await self.event_is_past(ev):