core: mark group contacts as used on send, receive, api (#1253)

This commit is contained in:
JRoberts
2022-10-25 12:50:26 +04:00
committed by GitHub
parent 1e10b0a49c
commit d7f319aa9e
7 changed files with 86 additions and 37 deletions
@@ -57,6 +57,7 @@ is_user INTEGER NOT NULL DEFAULT 0, -- 1 if this contact is a user
xcontact_id BLOB,
enable_ntfs INTEGER,
unread_chat INTEGER DEFAULT 0 CHECK(unread_chat NOT NULL),
contact_used INTEGER DEFAULT 0 CHECK(contact_used NOT NULL),
FOREIGN KEY(user_id, local_display_name)
REFERENCES display_names(user_id, local_display_name)
ON DELETE CASCADE