From 31ac3ac081ed952c98467c64c5dbc92722c0c7b2 Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Wed, 16 Mar 2022 08:42:04 +0100 Subject: [PATCH] Use DefaultRoomVersion as roomVersion --- clientapi/routing/server_notices.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clientapi/routing/server_notices.go b/clientapi/routing/server_notices.go index fcc670ae8..224eff3a1 100644 --- a/clientapi/routing/server_notices.go +++ b/clientapi/routing/server_notices.go @@ -21,6 +21,7 @@ import ( "net/http" "time" + "github.com/matrix-org/dendrite/roomserver/version" userdb "github.com/matrix-org/dendrite/userapi/storage" "github.com/matrix-org/gomatrix" "github.com/matrix-org/gomatrixserverlib" @@ -127,7 +128,7 @@ func sendServerNotice( senderUserID := fmt.Sprintf("@%s:%s", cfgNotices.LocalPart, cfgClient.Matrix.ServerName) roomID := qryServerNoticeRoom.RoomID - roomVersion := gomatrixserverlib.RoomVersionV6 + roomVersion := version.DefaultRoomVersion() // create a new room for the user if qryServerNoticeRoom.RoomID == "" {