test: test chatlist can load for obfuscated chats (#4979)

close #4598
This commit is contained in:
Sebastian Klähn
2023-11-10 21:23:51 +01:00
committed by GitHub
parent cc88a6cb58
commit 465bcd46f8
2 changed files with 39 additions and 1 deletions

View File

@@ -714,7 +714,9 @@ impl TestContext {
})
.collect();
let sel_chat = Chat::load_from_db(self, chat_id).await.unwrap();
let Ok(sel_chat) = Chat::load_from_db(self, chat_id).await else {
return String::from("Can't load chat\n");
};
let members = chat::get_chat_contacts(self, sel_chat.id).await.unwrap();
let subtitle = if sel_chat.is_device_talk() {
"device-talk".to_string()