mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-05 02:01:03 +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,
|
||||
joined: []internal.User{user},
|
||||
visibility: request.Visibility,
|
||||
server: user.backend}
|
||||
server: user.backend,
|
||||
state: request.Preset}
|
||||
|
||||
for i, _ := range room.events {
|
||||
room.events[i].Room = room
|
||||
|
Loading…
Reference in New Issue
Block a user