dkforest

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

commit 341188cd7ded3309c6ff8f1c3191e177f3a16191
parent 4ef5f2c497c4e2947d01c5bd7b733fae8da9f8f3
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 12 Jan 2023 15:21:28 -0800

add doc

Diffstat:
Mpkg/database/tableChatRooms.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pkg/database/tableChatRooms.go b/pkg/database/tableChatRooms.go @@ -134,6 +134,7 @@ type ChatRoomAug struct { IsUnread bool } +// GetOfficialChatRooms1 returns official chat rooms with additional information such as "IsUnread" func GetOfficialChatRooms1(userID UserID) (out []ChatRoomAug, err error) { err = DB.Raw(`SELECT r.*, COALESCE((rr.read_at < m.created_at), 1) as is_unread