Use DefaultRoomVersion as roomVersion

This commit is contained in:
Till Faelligen 2022-03-16 08:42:04 +01:00
parent 710007d600
commit 31ac3ac081

View file

@ -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 == "" {