(&mut self, session_id: &str, msg_id: &str)
| 3023 | } |
| 3024 | |
| 3025 | fn remove_optimistic_message(&mut self, session_id: &str, msg_id: &str) { |
| 3026 | let mut session_ctx = self.context.session.write(); |
| 3027 | if let Some(msgs) = session_ctx.messages.get_mut(session_id) { |
| 3028 | msgs.retain(|m| m.id != msg_id); |
| 3029 | } |
| 3030 | } |
| 3031 | |
| 3032 | fn sync_session_from_server(&mut self, session_id: &str) -> anyhow::Result<()> { |
| 3033 | let Some(client) = self.context.get_api_client() else { |
no test coverage detected