rewrite needed, local group connections
This commit is contained in:
+1
-2
@@ -22,7 +22,7 @@ func InitDatabase(ctx context.Context) {
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR(20) UNIQUE NOT NULL,
|
||||
pass_hash VARCHAR(60) NOT NULL,
|
||||
color VARCHAR(3) NOT NULL
|
||||
color VARCHAR(3) DEFAULT NULL,
|
||||
);
|
||||
CREATE TABLE IF NOT EXISTS chat_groups (
|
||||
id SERIAL PRIMARY KEY,
|
||||
@@ -108,7 +108,6 @@ func GetUserDataByName(ctx context.Context, name string) (User, error) {
|
||||
}
|
||||
|
||||
func CreateChatGroupWithoutMembers(ctx context.Context, group *ChatGroup) (uint32, error) {
|
||||
|
||||
if len(group.Name) < 1 {
|
||||
return 0, errors.New("group name too short")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user