aboutsummaryrefslogtreecommitdiff
path: root/src/commands/auth.rs
AgeCommit message (Collapse)Author
2017-12-03rebrand + fix cache/profile jsoniximeow
also set current profile to first auth'd account, when starting from a blank slate. silence follower changes because it's not sanely displayed yet (and may never be)
2017-11-25extract DisplayInfo from TwitterCacheiximeow
what a mess... threading this through to any point where printing happens is upsetting. probably should be a global mutable behind accessors.
2017-11-19support reconnecting specific profiles, switching profilesiximeow
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.
2017-11-18remove silly dependence on author's handleiximeow
2017-11-18groundwork for multi-account useiximeow
add connection state tracked per-stream, add explicit TwitterProfile mapped to names that can be used for accounts. default names are the handle of the corresponding twitter account. partition out user Credential to be per TwitterProfile, so fav, reply, etc, all come from the selected account. Multiplex twitter connections and message streams across chan (instead of earlier plan, which was to have one chan per thread)
2017-11-11add a little more help info, describe tweets/compose mode/commandsiximeow
2017-11-11start adding help referenceiximeow
2017-11-10very hackily add notion of user credentials and PIN authiximeow
also fix bug where cached user info takes precedence over (possibly updated) api json user info