mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
represent archivestate as enum
before it was a boolean, even though it is a 3 state
This commit is contained in:
@@ -392,7 +392,9 @@ mod tests {
|
||||
let chats = Chatlist::try_load(&t.ctx, DC_GCL_ARCHIVED_ONLY, None, None).unwrap();
|
||||
assert_eq!(chats.len(), 0);
|
||||
|
||||
chat_id1.set_archived(&t.ctx, true).ok();
|
||||
chat_id1
|
||||
.set_archive_state(&t.ctx, ArchiveState::Archived)
|
||||
.ok();
|
||||
let chats = Chatlist::try_load(&t.ctx, DC_GCL_ARCHIVED_ONLY, None, None).unwrap();
|
||||
assert_eq!(chats.len(), 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user