mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
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:
@@ -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),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user