diff --git a/eventversion.go b/eventversion.go index a5b8f50e..70a43d39 100644 --- a/eventversion.go +++ b/eventversion.go @@ -27,6 +27,7 @@ const ( RoomVersionV4 RoomVersion = "4" RoomVersionV5 RoomVersion = "5" RoomVersionV6 RoomVersion = "6" + RoomVersionV7 RoomVersion = "7" ) // Event format constants. @@ -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