From 0fb90e1ff2c89c403c6668064766df0aa202b2a1 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 19 Nov 2017 03:27:59 -0800 Subject: support reconnecting specific profiles, switching profiles open issues: something is wrong with loading settings - something gets replayed from main account to alternate accounts. auth'ing a new account doesn't set handle, name, etc. i think most issue are because events aren't recorded with what connection they came from - welcome event for any account gets replayed onto curr_profile because we simply don't know which connection the event was from. the same will happen for twitter events, but those aren't logged. --- src/tw/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tw') diff --git a/src/tw/mod.rs b/src/tw/mod.rs index dc91cdd..b81fa52 100644 --- a/src/tw/mod.rs +++ b/src/tw/mod.rs @@ -23,10 +23,11 @@ use self::tweet::Tweet; pub mod user; use self::user::User; +#[derive(Clone)] pub enum AppState { Shutdown, ShowHelp, - Reconnect, + Reconnect(String), Compose, View } -- cgit v1.1