dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 8cd906745e2e94dc6ec7cf3e10d73d8820df9b5e
parent 9686e5ba00d86d044820b28adb9c689a3c4a52c0
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 28 May 2023 03:18:21 -0700

fix hide right column in stream chat

Diffstat:
Mpkg/web/public/views/pages/chat.gohtml | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/public/views/pages/chat.gohtml b/pkg/web/public/views/pages/chat.gohtml @@ -232,7 +232,7 @@ allow-popups-to-escape-sandbox" */}} <iframe id="chat-content" name="iframe2" src="/api/v1/chat/messages/{{ .Data.Room.Name }}{{ if .Data.IsStream }}/stream{{ end }}{{ .Data.ChatQueryParams }}"></iframe> - {{ if .Data.IsStream }}<iframe id="chat-menu" src="/api/v1/chat/messages/{{ .Data.Room.Name }}/stream/menu{{ .Data.ChatQueryParams }}"></iframe>{{ end }} + {{ if and .Data.IsStream (not .AuthUser.HideRightColumn) }}<iframe id="chat-menu" src="/api/v1/chat/messages/{{ .Data.Room.Name }}/stream/menu{{ .Data.ChatQueryParams }}"></iframe>{{ end }} </div> {{ end }} <div>