commit 98d2653bdd2cd70fed3addb762cb6aca4c52e174
parent 7d80bccd20097a6b98ada8b9df0075cf2d2beb28
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 18 Feb 2025 14:56:50 -0800
remove useless code
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/pkg/database/tableChatMessages.go b/pkg/database/tableChatMessages.go
@@ -602,12 +602,9 @@ func (d *DkfDB) createMsg(raw, txt, roomKey string, roomID RoomID, userID UserID
if err != nil {
return
}
-
out = makeMsg(raw, txt, roomID, userID)
out.SkipNotify = skipNotify
- if toUserID != nil {
- out.ToUserID = toUserID
- }
+ out.ToUserID = toUserID
out.IsHellbanned = hellbanMsg
out.System = system
err = d.db.Create(&out).Error