fixes
Some checks failed
CI / Check (pull_request) Has been cancelled
CI / Format (pull_request) Has been cancelled
CI / Clippy (pull_request) Has been cancelled
CI / Build (macos-latest) (pull_request) Has been cancelled
CI / Build (ubuntu-latest) (pull_request) Has been cancelled
CI / Build (windows-latest) (pull_request) Has been cancelled

This commit is contained in:
Mikhail Kilin
2026-01-28 01:29:03 +03:00
parent f291191577
commit 051c4a0265
29 changed files with 2189 additions and 45 deletions

View File

@@ -7,6 +7,7 @@ use crate::tdlib::client::ChatInfo;
use crate::tdlib::TdClient;
pub struct App {
pub config: crate::config::Config,
pub screen: AppScreen,
pub td_client: TdClient,
// Auth state
@@ -88,11 +89,12 @@ pub struct App {
impl App {
pub fn new() -> App {
pub fn new(config: crate::config::Config) -> App {
let mut state = ListState::default();
state.select(Some(0));
App {
config,
screen: AppScreen::Loading,
td_client: TdClient::new(),
phone_input: String::new(),