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

Improve validation of field size limits in events. #14664

Merged
merged 16 commits into from
Dec 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion synapse/api/room_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class PushRuleRoomFlag:
EXTENSIBLE_EVENTS = "org.matrix.msc3932.extensible_events"


@attr.s(slots=True, frozen=True, auto_attribs=True)
# eq=False means equality and hashing are done using object identity, which suits
# our purposes because each RoomVersion is instantiated only once and some of
# the fields are not hashable.
@attr.s(slots=True, frozen=True, auto_attribs=True, eq=False)
reivilibre marked this conversation as resolved.
Show resolved Hide resolved
class RoomVersion:
"""An object which describes the unique attributes of a room version."""

Expand Down