From faaa5933d469f8a8c096132e6c250208d37a83bf Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 15 Mar 2020 17:31:10 -0400 Subject: [PATCH] Fix local echo --- src/backend/matrix_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/matrix_client.py b/src/backend/matrix_client.py index ca57440c..6df2b752 100644 --- a/src/backend/matrix_client.py +++ b/src/backend/matrix_client.py @@ -1186,7 +1186,7 @@ class MatrixClient(nio.AsyncClient): ) 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}" if not local_sender and not await self.event_is_past(ev):