From 823ab7e1006defc83a8c2040e5e2f89aabe89020 Mon Sep 17 00:00:00 2001 From: nxshock Date: Fri, 2 Aug 2019 21:48:48 +0500 Subject: [PATCH] Add filling of room state field on room creation --- internal/backends/memory/user.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/backends/memory/user.go b/internal/backends/memory/user.go index 3f09b7a..76b95f4 100644 --- a/internal/backends/memory/user.go +++ b/internal/backends/memory/user.go @@ -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