From c2391f7113a5020d28d9fa5680ae025c20062126 Mon Sep 17 00:00:00 2001
From: Till Faelligen <2353100+S7evinK@users.noreply.github.com>
Date: Thu, 28 Mar 2024 21:37:53 +0100
Subject: [PATCH] Add missing join_rule

---
 fclient/federationtypes.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fclient/federationtypes.go b/fclient/federationtypes.go
index 59cfa139..0579df83 100644
--- a/fclient/federationtypes.go
+++ b/fclient/federationtypes.go
@@ -129,6 +129,8 @@ type PublicRoom struct {
 	GuestCanJoin bool `json:"guest_can_join"`
 	// The URL for the room's avatar, if one is set.
 	AvatarURL string `json:"avatar_url,omitempty"`
+	// The join rule for this room
+	JoinRule string `json:"join_rule,omitempty"`
 }
 
 // A RespEventAuth is the content of a response to GET /_matrix/federation/v1/event_auth/{roomID}/{eventID}