Skip to content

Commit

Permalink
Add constants used in space summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
swedgwood committed Jul 13, 2023
1 parent 226d208 commit da01d4b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/eventtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,8 @@ const (
MPresence = "m.presence"
// MRoomMembership https://github.com/matrix-org/matrix-doc/blob/clokep/restricted-rooms/proposals/3083-restricted-rooms.md
MRoomMembership = "m.room_membership"
// MSpaceChild https://spec.matrix.org/v1.7/client-server-api/#mspacechild-relationship
MSpaceChild = "m.space.child"
// MSpaceParent https://spec.matrix.org/v1.7/client-server-api/#mspaceparent-relationships
MSpaceParent = "m.space.parent"
)
22 changes: 22 additions & 0 deletions spec/roomtypes.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2023 The Matrix.org Foundation C.I.C.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package spec

const (
// Content key for room type in m.room.create event https://spec.matrix.org/v1.7/client-server-api/#mroomcreate
MRoomCreateTypeContentKey = "type"
// MSpace https://spec.matrix.org/v1.7/client-server-api/#types
MSpace = "m.space"
)

0 comments on commit da01d4b

Please sign in to comment.