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

Commit

Permalink
Remove debugging fields for TARDIS visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Feb 5, 2021
1 parent 7ec22b5 commit afa5e5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion synapse/events/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ async def build(
prev_events = prev_event_ids

old_depth = await self._store.get_max_depth_of(prev_event_ids)
# awfewafeafew depth stuff
# If backfilling old message, let's just use the same depth of what we're inserting next to
if overriding_prev_events:
depth = old_depth
Expand Down
14 changes: 7 additions & 7 deletions synapse/events/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ def format_event_for_client_v1(d):

def format_event_for_client_v2(d):
drop_keys = (
# "auth_events",
# "prev_events",
# "hashes",
# "signatures",
# "depth",
# "origin",
# "prev_state",
"auth_events",
"prev_events",
"hashes",
"signatures",
"depth",
"origin",
"prev_state",
)
for key in drop_keys:
d.pop(key, None)
Expand Down

0 comments on commit afa5e5d

Please sign in to comment.