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

@@ -473,7 +473,7 @@ impl Job {
}
}
}
Message::delete_from_db(context, msg.id);
msg.id.delete_from_db(context);
Status::Finished(Ok(()))
} else {
/* eg. device messages have no Message-ID */