mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 09:56:35 +03:00
better fallbacks
This commit is contained in:
@@ -965,7 +965,11 @@ impl rusqlite::types::FromSql for ArchiveState {
|
||||
match val {
|
||||
2 => ArchiveState::Pinned,
|
||||
1 => ArchiveState::Archived,
|
||||
_ => ArchiveState::Normal,
|
||||
0 => ArchiveState::Normal,
|
||||
_ => {
|
||||
println!("unknown archived state, falling back to normal state (was this db opened with a newer deltachat version?)");
|
||||
ArchiveState::Normal
|
||||
},
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user