Rename Chat.archive() into Chat.set_archived()

This commit is contained in:
Alexander Krotov
2020-01-25 20:52:15 +03:00
parent a2845f44ab
commit 889327b5f6
4 changed files with 11 additions and 11 deletions

View File

@@ -388,7 +388,7 @@ mod tests {
let chats = Chatlist::try_load(&t.ctx, DC_GCL_ARCHIVED_ONLY, None, None).unwrap();
assert_eq!(chats.len(), 0);
chat_id1.archive(&t.ctx, true).ok();
chat_id1.set_archived(&t.ctx, true).ok();
let chats = Chatlist::try_load(&t.ctx, DC_GCL_ARCHIVED_ONLY, None, None).unwrap();
assert_eq!(chats.len(), 1);
}