commit 930c5195d3a2ad432ee804c8d770440f1da3ae83
parent b55923814ffdfcc9ce4231fca3ed51c63dd05316
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 18 Feb 2025 15:51:49 -0800
reuse code
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/database/tableChatMessages.go b/pkg/database/tableChatMessages.go
@@ -573,7 +573,7 @@ func (d *DkfDB) CreateMsg(raw, txt, roomKey string, roomID RoomID, userID UserID
}
func (d *DkfDB) CreateSysMsg(raw, txt, roomKey string, roomID RoomID, userID UserID) error {
- return utils.Second(d.createMsg(raw, txt, roomKey, roomID, userID, nil, false, true, false))
+ return d.CreateSysMsgPM(raw, txt, roomKey, roomID, userID, nil, false)
}
func (d *DkfDB) CreateSysMsgPM(raw, txt, roomKey string, roomID RoomID, userID UserID, toUserID *UserID, skipNotify bool) error {