dkforest

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

commit da9b6725800472c3534b8a739b9a9ef5556aab6a
parent 98d2653bdd2cd70fed3addb762cb6aca4c52e174
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 18 Feb 2025 14:57:51 -0800

useless

Diffstat:
Mpkg/database/tableChatMessages.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/database/tableChatMessages.go b/pkg/database/tableChatMessages.go @@ -559,14 +559,13 @@ AND room_id = ? } func makeMsg(raw, txt string, roomID RoomID, userID UserID) ChatMessage { - msg := ChatMessage{ + return ChatMessage{ UUID: uuid.New().String(), Message: txt, RawMessage: raw, RoomID: roomID, UserID: userID, } - return msg } func (d *DkfDB) CreateMsg(raw, txt, roomKey string, roomID RoomID, userID UserID, toUserID *UserID, hellbanMsg bool) (out ChatMessage, err error) {