MCPcopy Create free account
hub / github.com/chatmail/core / get_self_chat

Method get_self_chat

src/test_utils.rs:1042–1047  ·  view source on GitHub ↗

Retrieves the "self" chat.

(&self)

Source from the content-addressed store, hash-verified

1040
1041 /// Retrieves the "self" chat.
1042 pub async fn get_self_chat(&self) -> Chat {
1043 let chat_id = ChatId::create_for_contact(self, ContactId::SELF)
1044 .await
1045 .unwrap();
1046 Chat::load_from_db(self, chat_id).await.unwrap()
1047 }
1048
1049 pub async fn assert_no_chat(&self, id: ChatId) {
1050 assert!(Chat::load_from_db(self, id).await.is_err());

Calls

no outgoing calls

Tested by

no test coverage detected