From b2eacd468f42cce412a9974ada3fc464772cfd77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Fri, 23 Feb 2018 15:21:13 +0100 Subject: [PATCH] Pass a copy of the tag list for the events. --- matrix/events.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix/events.py b/matrix/events.py index be55091..eed0cce 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -270,7 +270,7 @@ class MatrixBacklogEvent(MatrixEvent): tags = tags_for_message("backlog") for event in self.events: - event.execute(room, buf, tags) + event.execute(room, buf, list(tags)) room.prev_batch = self.end_token room.backlog_pending = False @@ -326,8 +326,8 @@ class MatrixSyncEvent(MatrixEvent): room.prev_batch = info.prev_batch tags = tags_for_message("message") - for message in info.events: - message.execute(room, buf, tags) + for event in info.events: + event.execute(server, room, buf, list(tags)) def execute(self): server = self.server