Add filling of room state field on room creation

This commit is contained in:
nxshock 2019-08-02 21:48:48 +05:00
parent e293cd0255
commit 823ab7e100

View File

@ -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