Skip to content
Merged
Changes from all commits
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
12 changes: 12 additions & 0 deletions eventversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const (
RoomVersionV4 RoomVersion = "4"
RoomVersionV5 RoomVersion = "5"
RoomVersionV6 RoomVersion = "6"
RoomVersionV7 RoomVersion = "7"
)

// Event format constants.
Expand Down Expand Up @@ -121,6 +122,17 @@ var roomVersionMeta = map[RoomVersion]RoomVersionDescription{
enforceCanonicalJSON: true,
powerLevelsIncludeNotifications: true,
},
RoomVersionV7: {
Supported: true,
Stable: true,
stateResAlgorithm: StateResV2,
eventFormat: EventFormatV2,
eventIDFormat: EventIDFormatV3,
redactionAlgorithm: RedactionAlgorithmV2,
enforceSignatureChecks: true,
enforceCanonicalJSON: true,
powerLevelsIncludeNotifications: true,
},
}

// RoomVersions returns information about room versions currently
Expand Down