mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
@@ -460,6 +460,12 @@ impl ChatId {
|
||||
msg.param.set(Param::File, blob.as_name());
|
||||
}
|
||||
}
|
||||
|
||||
let chat = Chat::load_from_db(context, self).await?;
|
||||
if !chat.can_send() {
|
||||
bail!("Can't set a draft: Can't send");
|
||||
}
|
||||
|
||||
context
|
||||
.sql
|
||||
.execute(
|
||||
|
||||
Reference in New Issue
Block a user