use unicode_width::UnicodeWidthStr;
use super::activity_stack::*;
-use super::client::{Client, ClientError, FeedId, StreamId, StreamUpdate};
+use super::client::{
+ Client, ClientError, FeedId, FeedExtend, StreamId, StreamUpdate,
+};
use super::coloured_string::{ColouredString, ColouredStringSlice};
use super::config::ConfigLocation;
use super::menu::*;
}))?;
}
+ // Now fetch the two basic feeds - home and mentions. Most
+ // importantly, getting the mentions feed started means that
+ // we can spot updates to it after that.
+ //
+ // We must do this _after_ starting the stream listener, so
+ // that we won't miss a notification due to a race condition.
+ self.client.fetch_feed(&FeedId::Home, FeedExtend::Initial)?;
+ self.client.fetch_feed(&FeedId::Mentions, FeedExtend::Initial)?;
+
self.main_loop()
}