mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix: delete smtp rows when message sending is cancelled
This commit is contained in:
@@ -20,9 +20,8 @@
|
|||||||
### Fixes
|
### Fixes
|
||||||
- Make the bots automatically accept group chat contact requests. #4377
|
- Make the bots automatically accept group chat contact requests. #4377
|
||||||
- Fetch at most 100 existing messages even if EXISTS was not received. #4383
|
- Fetch at most 100 existing messages even if EXISTS was not received. #4383
|
||||||
|
|
||||||
### Fixes
|
|
||||||
- jsonrpc: typescript client: fix types of events in event emitter
|
- jsonrpc: typescript client: fix types of events in event emitter
|
||||||
|
- delete `smtp` rows when message sending is cancelled #4391
|
||||||
|
|
||||||
|
|
||||||
## [1.114.0] - 2023-04-24
|
## [1.114.0] - 2023-04-24
|
||||||
|
|||||||
@@ -575,6 +575,11 @@ pub(crate) async fn send_msg_to_smtp(
|
|||||||
context,
|
context,
|
||||||
"Sending of message {} was cancelled by the user.", msg_id
|
"Sending of message {} was cancelled by the user.", msg_id
|
||||||
);
|
);
|
||||||
|
context
|
||||||
|
.sql
|
||||||
|
.execute("DELETE FROM smtp WHERE id=?", (rowid,))
|
||||||
|
.await
|
||||||
|
.context("failed to remove cancelled message from smtp table")?;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user