commit 58398ce0f9766d3cb785088cb679b84268e3b367 parent 9318feefa24114185b504d5e00f0ea42b880ef45 Author: n0tr1v <n0tr1v@protonmail.com> Date: Wed, 20 Dec 2023 10:51:01 -0500 enable Diffstat:
| M | pkg/web/handlers/poker.go | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkg/web/handlers/poker.go b/pkg/web/handlers/poker.go @@ -336,9 +336,9 @@ func PokerStreamHandler(c echo.Context) error { } chatRoomSlug := "general" - //if _, err := db.GetChatRoomByName(roomID.String()); err == nil { - // chatRoomSlug = roomID.String() - //} + if _, err := db.GetChatRoomByName(strings.ReplaceAll(roomID.String(), "-", "_")); err == nil { + chatRoomSlug = roomID.String() + } roomTopic := roomID.Topic() roomUserTopic := roomID.UserTopic(authUser.ID)