track created_timetamp for chats

This commit is contained in:
B. Petersen
2019-11-28 22:38:04 +01:00
parent 7484fb6120
commit 1d996d9ed9
3 changed files with 15 additions and 4 deletions

View File

@@ -1439,7 +1439,7 @@ fn create_group_record(
if sql::execute(
context,
&context.sql,
"INSERT INTO chats (type, name, grpid, blocked) VALUES(?, ?, ?, ?);",
"INSERT INTO chats (type, name, grpid, blocked, created_timestamp) VALUES(?, ?, ?, ?, ?);",
params![
if VerifiedStatus::Unverified != create_verified {
Chattype::VerifiedGroup
@@ -1449,6 +1449,7 @@ fn create_group_record(
grpname.as_ref(),
grpid.as_ref(),
create_blocked,
dc_create_smeared_timestamp(context),
],
)
.is_err()