commit 5067a607a9ab2ce884101f12e39896474a400a36
parent defbabfb7d624651b0d0ddac5a6a1c52ba8298c3
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Mon, 22 May 2023 17:50:50 -0700
pub messages sent by bot
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/database/tableChatMessages.go b/pkg/database/tableChatMessages.go
@@ -458,6 +458,7 @@ func (d *DkfDB) CreateMsg(raw, txt, roomKey string, roomID RoomID, userID UserID
out.ToUserID = toUserID
}
err = d.db.Create(&out).Error
+ MsgPubSub.Pub("room_"+utils.FormatInt64(int64(roomID)), ChatMessageType{Typ: 0, Msg: &out})
return
}