Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Backport #653 into 2.1.0 #675

Merged
merged 1 commit into from
Nov 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/GitHub.App/ViewModels/PullRequestListViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ public override void Initialize([AllowNull] ViewWithData data)

pullRequests.OriginalCompleted
.ObserveOn(RxApp.MainThreadScheduler)
.Catch<System.Reactive.Unit, Octokit.AuthorizationException>(ex =>
{
// TODO: Do some decent logging here
return repositoryHost.LogOut();
})
.Subscribe(_ =>
{
if (listSettings.SelectedAuthor != null)
Expand Down