diff options
author | Vitaly Takmazov | 2014-12-23 01:29:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2014-12-23 01:29:17 +0300 |
commit | cb08471c057e78d278891f08d03bc4aa41fe4d0d (patch) | |
tree | 3bb69a5de15592993efacfe9b347189b81592ad5 /Juick/ViewModels | |
parent | 2fe738b15dd6fb2fd459f260c35fa87c3ae99814 (diff) |
Fast resume
Diffstat (limited to 'Juick/ViewModels')
-rw-r--r-- | Juick/ViewModels/AppViewModel.cs | 1 | ||||
-rw-r--r-- | Juick/ViewModels/PageViewModel.cs | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Juick/ViewModels/AppViewModel.cs b/Juick/ViewModels/AppViewModel.cs index ba33625..4aa9321 100644 --- a/Juick/ViewModels/AppViewModel.cs +++ b/Juick/ViewModels/AppViewModel.cs @@ -162,6 +162,7 @@ namespace Juick.ViewModels public void EnableNotifications() { if (!Account.IsAuthenticated) return; + if (pushChannel.ChannelUri == null) return; var channelUri = pushChannel.ChannelUri.ToString(); if (channelUri == Account.NotificationUri) return; diff --git a/Juick/ViewModels/PageViewModel.cs b/Juick/ViewModels/PageViewModel.cs index 9781a9e..c13e6f1 100644 --- a/Juick/ViewModels/PageViewModel.cs +++ b/Juick/ViewModels/PageViewModel.cs @@ -73,6 +73,10 @@ namespace Juick.ViewModels _context.Client.ExecuteAsync<List<Message>>(request, response =>
{
_context.IsDataLoading = false;
+ if (response.ErrorException != null)
+ {
+ return;
+ }
if (response.Data == null)
return;
response.Data.Select(x => new PostItem(x)).ToList().ForEach(i => Items.Add(i));
|