From 799757386fa02339c20eff9f256de0f97b5fa042 Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Fri, 17 Nov 2017 00:50:11 -0800 Subject: fix rendering issues with events, support End key also disable rendering of delete events --- src/tw/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/tw/mod.rs') diff --git a/src/tw/mod.rs b/src/tw/mod.rs index 7024260..acee0c2 100644 --- a/src/tw/mod.rs +++ b/src/tw/mod.rs @@ -286,6 +286,9 @@ impl TwitterCache { key: "".to_owned(), secret: "".to_owned() }, + // So, supporting multiple profiles will be ... interesting? + // how do we support a variable number of channels? which will be necessary as we'll + // have one channel up per twitter stream... profile: None, // this will become a HashMap when multiple profiles are supported following: HashSet::new(), following_history: HashMap::new(), @@ -345,7 +348,6 @@ impl TwitterCache { fn cache_tweet(&mut self, tweet: Tweet) { if !self.tweets.contains_key(&tweet.id) { - let mut file = OpenOptions::new() .create(true) @@ -706,12 +708,14 @@ fn handle_twitter_delete( structure: serde_json::Map, tweeter: &mut TwitterCache, _queryer: &mut ::Queryer) { + /* tweeter.display_info.recv(display::Infos::Event( events::Event::Deleted { user_id: structure["delete"]["status"]["user_id_str"].as_str().unwrap().to_string(), twete_id: structure["delete"]["status"]["id_str"].as_str().unwrap().to_string() } )); + */ } fn handle_twitter_twete( -- cgit v1.1