Skip to content

Commit

Permalink
Ignore typing stream for now
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed May 18, 2024
1 parent a2dc84f commit 7bd1575
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions synapse/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,12 @@ def is_before_or_eq(self, other_token: "StreamToken") -> bool:
"""

for _, key in StreamKeyType.__members__.items():
if key == StreamKeyType.TYPING:
# Typing stream is allowed to "reset", and so comparisons don't
# really make sense as is.
# TODO: Figure out a better way of tracking resets.
continue

self_value = self.get_field(key)
other_value = other_token.get_field(key)

Expand Down

0 comments on commit 7bd1575

Please sign in to comment.