mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 16:06:30 +03:00
chatlist: resultify get_msg_id, get_summary and get_summary2
Avoid using MsgId::new(0) in place of `None` in the Rust part. Zero ID is only used in FFI part now.
This commit is contained in:
@@ -331,7 +331,7 @@ impl TestContext {
|
||||
// The chatlist describes what you see when you open DC, a list of chats and in each of them
|
||||
// the first words of the last message. To get the last message overall, we look at the chat at the top of the
|
||||
// list, which has the index 0.
|
||||
let msg_id = chats.get_msg_id(0).unwrap();
|
||||
let msg_id = chats.get_msg_id(0).unwrap().unwrap();
|
||||
Message::load_from_db(&self.ctx, msg_id)
|
||||
.await
|
||||
.expect("failed to load msg")
|
||||
|
||||
Reference in New Issue
Block a user