Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'rav/stream_ordering_dups' into rav/ordering_method_dupl…
Browse files Browse the repository at this point in the history
…ication
  • Loading branch information
richvdh committed Oct 2, 2020
2 parents 825066c + 6230f13 commit 1be8225
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/rest/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ async def on_POST(self, request, room_id, event_id):
if event.room_id != room_id:
raise SynapseError(400, "Event is for wrong room.")

room_token = RoomStreamToken(event.depth, event.stream_ordering)
room_token = RoomStreamToken(
event.depth, event.internal_metadata.stream_ordering
)
token = await room_token.to_string(self.store)

logger.info("[purge] purging up to token %s (event_id %s)", token, event_id)
Expand Down

0 comments on commit 1be8225

Please sign in to comment.