Turn Message::Delete_from_db into MsgId method

This commit is contained in:
Alexander Krotov
2020-02-24 01:21:28 +03:00
parent 98bd64621a
commit 4452cab987
3 changed files with 20 additions and 21 deletions

View File

@@ -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,