core: support business addresses and chats (#5272)

* core: support business addresses and chats

* types

* connect plan, add link type

* ios: toggle on address UI

* make compile

* todo

* fix migration

* types

* comments

* fix

* remove

* fix schema

* comment

* simplify

* remove diff

* comment

* comment

* diff

* acceptBusinessJoinRequestAsync wip

* comment

* update

* simplify types

* remove business

* wip

* read/write columns

* createBusinessRequestGroup

* remove comments

* read/write business_address column

* validate that business address is not set to be incognito

* replace contact card

* update simplexmq

* refactor

* event when accepting business address request

* sendGroupAutoReply

* delete contact request earlier

* test, fix

* refactor

* refactor2

---------

Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
This commit is contained in:
Evgeny
2024-12-02 14:01:23 +00:00
committed by GitHub
parent c488c4fcd5
commit 5f01dc1a3f
23 changed files with 454 additions and 97 deletions
+4 -1
View File
@@ -127,7 +127,9 @@ CREATE TABLE groups(
via_group_link_uri_hash BLOB,
user_member_profile_sent_at TEXT,
custom_data BLOB,
ui_themes TEXT, -- received
ui_themes TEXT,
business_member_id BLOB NULL,
business_chat TEXT NULL, -- received
FOREIGN KEY(user_id, local_display_name)
REFERENCES display_names(user_id, local_display_name)
ON DELETE CASCADE
@@ -309,6 +311,7 @@ CREATE TABLE user_contact_links(
auto_accept_incognito INTEGER DEFAULT 0 CHECK(auto_accept_incognito NOT NULL),
group_link_id BLOB,
group_link_member_role TEXT NULL,
business_address INTEGER DEFAULT 0,
UNIQUE(user_id, local_display_name)
);
CREATE TABLE contact_requests(