mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-22 10:22:21 +00:00
Add filling of room state field on room creation
This commit is contained in:
parent
e293cd0255
commit
823ab7e100
@ -91,7 +91,8 @@ func (user *User) CreateRoom(request createroom.Request) (internal.Room, *models
|
|||||||
creator: user,
|
creator: user,
|
||||||
joined: []internal.User{user},
|
joined: []internal.User{user},
|
||||||
visibility: request.Visibility,
|
visibility: request.Visibility,
|
||||||
server: user.backend}
|
server: user.backend,
|
||||||
|
state: request.Preset}
|
||||||
|
|
||||||
for i, _ := range room.events {
|
for i, _ := range room.events {
|
||||||
room.events[i].Room = room
|
room.events[i].Room = room
|
||||||
|
Loading…
Reference in New Issue
Block a user