[Fix] Local & Remote message handling is now propper

This commit is contained in:
Alex Emmet 2026-04-08 09:19:45 +02:00
commit 3c11800af5
6 changed files with 176 additions and 102 deletions

View file

@ -1,13 +1,12 @@
use std::sync::Arc;
use std::time::{SystemTime, UNIX_EPOCH};
use tokio::sync::oneshot;
use iota_cli::ui::UI;
use iota_cli::screens::terms_checker::{TermsCheckerScreen, UserChoice};
use iota_cli::screens::terms_updater::{TermsUpdaterScreen, UpdateDecision};
use iota_terms::{Doc, get_current_docs, get_newest_docs, TermsType as Type};
use iota_cli::ui::UI;
use iota_terms::{Doc, TermsType as Type, get_current_docs, get_newest_docs};
use iota_util::file_util::{load_file, save_file};
use tokio::sync::oneshot;
pub async fn check(ui: Arc<UI>) -> (bool, bool) {
let mut state = ConsentState::load_state();
@ -211,7 +210,6 @@ async fn get_updates() -> Option<(
}
}
#[derive(Debug, Clone)]
pub struct ConsentState {
pub eula: Option<Doc>,