mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-23 06:41:56 -06:00
Use DefaultRoomVersion as roomVersion
This commit is contained in:
parent
710007d600
commit
31ac3ac081
|
@ -21,6 +21,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/matrix-org/dendrite/roomserver/version"
|
||||||
userdb "github.com/matrix-org/dendrite/userapi/storage"
|
userdb "github.com/matrix-org/dendrite/userapi/storage"
|
||||||
"github.com/matrix-org/gomatrix"
|
"github.com/matrix-org/gomatrix"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
|
@ -127,7 +128,7 @@ func sendServerNotice(
|
||||||
|
|
||||||
senderUserID := fmt.Sprintf("@%s:%s", cfgNotices.LocalPart, cfgClient.Matrix.ServerName)
|
senderUserID := fmt.Sprintf("@%s:%s", cfgNotices.LocalPart, cfgClient.Matrix.ServerName)
|
||||||
roomID := qryServerNoticeRoom.RoomID
|
roomID := qryServerNoticeRoom.RoomID
|
||||||
roomVersion := gomatrixserverlib.RoomVersionV6
|
roomVersion := version.DefaultRoomVersion()
|
||||||
|
|
||||||
// create a new room for the user
|
// create a new room for the user
|
||||||
if qryServerNoticeRoom.RoomID == "" {
|
if qryServerNoticeRoom.RoomID == "" {
|
||||||
|
|
Loading…
Reference in a new issue