fix: return correct MsgId for malformed message tombstone

.execute() returns the number of affected rows,
in this case it is always 1 and MsgId(1) is returned
instead of the actual tombstone row ID.
This commit is contained in:
link2xt
2023-11-28 21:24:52 +00:00
parent 4332170691
commit 37d2aafb26
2 changed files with 7 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ pub(crate) async fn receive_imf_inner(
let row_id = context
.sql
.execute(
.insert(
"INSERT INTO msgs(rfc724_mid, chat_id) VALUES (?,?)",
(rfc724_mid, DC_CHAT_ID_TRASH),
)