mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
core: improve group link protocol (immediately establish group connection without first creating contact) (#3288)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
|
||||
module Simplex.Chat.Migrations.M20231030_xgrplinkmem_received where
|
||||
|
||||
import Database.SQLite.Simple (Query)
|
||||
import Database.SQLite.Simple.QQ (sql)
|
||||
|
||||
m20231030_xgrplinkmem_received :: Query
|
||||
m20231030_xgrplinkmem_received =
|
||||
[sql|
|
||||
ALTER TABLE group_members ADD COLUMN xgrplinkmem_received INTEGER NOT NULL DEFAULT 0;
|
||||
|]
|
||||
|
||||
down_m20231030_xgrplinkmem_received :: Query
|
||||
down_m20231030_xgrplinkmem_received =
|
||||
[sql|
|
||||
ALTER TABLE group_members DROP COLUMN xgrplinkmem_received;
|
||||
|]
|
||||
@@ -146,6 +146,7 @@ CREATE TABLE group_members(
|
||||
updated_at TEXT CHECK(updated_at NOT NULL),
|
||||
member_profile_id INTEGER REFERENCES contact_profiles ON DELETE SET NULL,
|
||||
show_messages INTEGER NOT NULL DEFAULT 1,
|
||||
xgrplinkmem_received INTEGER NOT NULL DEFAULT 0,
|
||||
FOREIGN KEY(user_id, local_display_name)
|
||||
REFERENCES display_names(user_id, local_display_name)
|
||||
ON DELETE CASCADE
|
||||
|
||||
Reference in New Issue
Block a user