Pass a copy of the tag list for the events.

This commit is contained in:
poljar (Damir Jelić) 2018-02-23 15:21:13 +01:00
parent e1723c528c
commit b2eacd468f

View file

@ -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