mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 12:53:18 +00:00
core, ui: security code verification in channels (verify member key) (#7255)
This commit is contained in:
1 parent
6e2995cab6
commit
0fef34914d
28 files changed
+250
-88
No files matched your search
@@ -0,0 +1,21 @@
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
|
||||
module Simplex.Chat.Store.Postgres.Migrations.M20260714_member_security_code where
|
||||
|
||||
import Data.Text (Text)
|
||||
import Text.RawString.QQ (r)
|
||||
|
||||
m20260714_member_security_code :: Text
|
||||
m20260714_member_security_code =
|
||||
[r|
|
||||
ALTER TABLE group_members ADD COLUMN member_security_code TEXT;
|
||||
ALTER TABLE group_members ADD COLUMN member_security_code_verified_at TIMESTAMPTZ;
|
||||
|]
|
||||
|
||||
down_m20260714_member_security_code :: Text
|
||||
down_m20260714_member_security_code =
|
||||
[r|
|
||||
ALTER TABLE group_members DROP COLUMN member_security_code;
|
||||
ALTER TABLE group_members DROP COLUMN member_security_code_verified_at;
|
||||
|]
|
||||
@@ -836,7 +836,9 @@ CREATE TABLE test_chat_schema.group_members (
|
||||
relay_link bytea,
|
||||
member_pub_key bytea,
|
||||
removed_at timestamp with time zone,
|
||||
roster_served_version bigint
|
||||
roster_served_version bigint,
|
||||
member_security_code text,
|
||||
member_security_code_verified_at timestamp with time zone
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user