mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 02:46:29 +03:00
Turn Message::Delete_from_db into MsgId method
This commit is contained in:
@@ -287,7 +287,7 @@ impl ChatId {
|
||||
fn maybe_delete_draft(self, context: &Context) -> bool {
|
||||
match self.get_draft_msg_id(context) {
|
||||
Some(msg_id) => {
|
||||
Message::delete_from_db(context, msg_id);
|
||||
msg_id.delete_from_db(context);
|
||||
true
|
||||
}
|
||||
None => false,
|
||||
|
||||
Reference in New Issue
Block a user