change message sending to work via http

This commit is contained in:
gitGnome
2026-03-30 14:05:29 +02:00
parent 8f9503bbab
commit 5351d9686f
3 changed files with 31 additions and 38 deletions
+8
View File
@@ -90,6 +90,14 @@ func DbSetClientByIdWithoutGroups(ctx context.Context, client *Client) error {
return err
}
func DbSetClientById(ctx context.Context, client *Client) error {
err := DbSetClientByIdWithoutGroups(ctx, client)
if err != nil {
return err
}
return DbSetClientGroups(ctx, client)
}
func DbSaveGroupWithoutClients(ctx context.Context, group *Group) error {
err := dbConn.QueryRow(ctx, `
INSERT INTO chat_groups (name, creator_id, owner_id, enable_client_colors, color_red, color_green, color_blue, created_at)