Retrieves the "self" chat.
(&self)
| 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()); |
no outgoing calls
no test coverage detected