aboutsummaryrefslogtreecommitdiff
path: root/src/tw
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-11-17 00:50:11 -0800
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-11-17 00:50:45 -0800
commit799757386fa02339c20eff9f256de0f97b5fa042 (patch)
treeff4a2802ed25d9d691851232a244fb269cfe5fa6 /src/tw
parentf8d53de1fea82a4fa5698a6d5501ca34a0677d65 (diff)
fix rendering issues with events, support End key
also disable rendering of delete events
Diffstat (limited to 'src/tw')
-rw-r--r--src/tw/mod.rs6
1 files changed, 5 insertions, 1 deletions
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<String, serde_json::Value>,
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(