mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
make enum reading from the db more robust
This commit is contained in:
@@ -38,6 +38,12 @@ pub enum MessageState {
|
||||
OutMdnRcvd = 28,
|
||||
}
|
||||
|
||||
impl Default for MessageState {
|
||||
fn default() -> Self {
|
||||
MessageState::Undefined
|
||||
}
|
||||
}
|
||||
|
||||
impl From<MessageState> for LotState {
|
||||
fn from(s: MessageState) -> Self {
|
||||
use MessageState::*;
|
||||
|
||||
Reference in New Issue
Block a user