/**
 * Close any open conversation a given client may currently have.
 * We also need to both clean the hold/local memory state to make sure
 * that outdated variables or hold positions are not loaded into the next open conversation.
 */
Close any open conversation a given client may currently have.
We also need to both clean the hold/local memory state to make sure
that outdated variables or hold positions are not loaded into the next open conversation.
Close any open conversation a given client may currently have . We also need to both clean the hold / local memory state to make sure that outdated variables or hold positions are not loaded into the next open conversation .
pub fn user_close_all_conversations(client: Client) -> Result<(), EngineError> {
    let mut db = init_db()?;
    init_logger();
    state::delete_state_key(&client, "hold", "position", &mut db)?;
    conversations::close_all_conversations(&client, &mut db)
}
pub fn user_close_all_conversations ( client : Client ) -> Result < ( ) , EngineError > { let mut db = init_db ( ) ? ; init_logger ( ) ; state :: delete_state_key ( & client , " " , " " , & mut db ) ? ; conversations :: close_all_conversations ( & client , & mut db ) }
Close any open conversation a given client may currently have.
Close any open conversation a given client may currently have .
client
Client