From ca0762652e293ad9d35b03b537c02d218e44a13f Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Fri, 10 Nov 2017 04:04:00 -0800 Subject: very hackily add notion of user credentials and PIN auth also fix bug where cached user info takes precedence over (possibly updated) api json user info --- src/display/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/display') diff --git a/src/display/mod.rs b/src/display/mod.rs index 4480855..92fa9dd 100644 --- a/src/display/mod.rs +++ b/src/display/mod.rs @@ -180,6 +180,8 @@ pub fn paint(tweeter: &mut ::tw::TwitterCache) -> Result<(), std::io::Error> { lines } Infos::Thread(ids) => { + // TODO: group together thread elements by the same person a little + // better.. let mut tweets: Vec> = ids.iter().rev().map(|x| into_display_lines(render_twete(x, tweeter), width)).collect(); let last = tweets.pop(); let mut lines = tweets.into_iter().fold(Vec::new(), |mut sum, lines| { -- cgit v1.1