aboutsummaryrefslogtreecommitdiff
path: root/roomserver
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2021-01-29 11:36:26 +0000
committerGitHub <noreply@github.com>2021-01-29 11:36:26 +0000
commit6d1c6f29e05a11830d45f5a229578e91fc012d4b (patch)
tree6ca0a55a4685381c1fb6e5d422166f93341f7ee1 /roomserver
parent61090cbe351f4ea9e43a87ce6c7d80565dc62ea4 (diff)
Add m.room.create to invite stripped state (#1740)
MSC1772 needs this because the create event contains info on if the room is a space or not. The create event itself isn't sensitive so other people may find this useful too.
Diffstat (limited to 'roomserver')
-rw-r--r--roomserver/internal/perform/perform_invite.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/internal/perform/perform_invite.go b/roomserver/internal/perform/perform_invite.go
index 085cb02e..93a52350 100644
--- a/roomserver/internal/perform/perform_invite.go
+++ b/roomserver/internal/perform/perform_invite.go
@@ -225,7 +225,7 @@ func buildInviteStrippedState(
for _, t := range []string{
gomatrixserverlib.MRoomName, gomatrixserverlib.MRoomCanonicalAlias,
gomatrixserverlib.MRoomAliases, gomatrixserverlib.MRoomJoinRules,
- "m.room.avatar", "m.room.encryption",
+ "m.room.avatar", "m.room.encryption", gomatrixserverlib.MRoomCreate,
} {
stateWanted = append(stateWanted, gomatrixserverlib.StateKeyTuple{
EventType: t,