Receive a message using the `receive_imf()` pipeline. This is similar to `recv_msg()`, but doesn't assume that the message is shown in the chat.
(&self, msg: &SentMessage<'_>)
| 835 | /// Receive a message using the `receive_imf()` pipeline. This is similar |
| 836 | /// to `recv_msg()`, but doesn't assume that the message is shown in the chat. |
| 837 | pub async fn recv_msg_opt(&self, msg: &SentMessage<'_>) -> Option<ReceivedMsg> { |
| 838 | receive_imf(self, msg.payload().as_bytes(), false) |
| 839 | .await |
| 840 | .unwrap() |
| 841 | .filter(|msg| msg.chat_id != DC_CHAT_ID_TRASH) |
| 842 | } |
| 843 | |
| 844 | /// Receives a message and asserts that it goes to trash chat. |
| 845 | pub async fn recv_msg_trash(&self, msg: &SentMessage<'_>) { |
no test coverage detected