aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/NotificationsService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-10-04 14:05:24 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-10-04 14:05:24 -0400
commit7a084a589ed1b43cb59dc323388b31b28b0d3d91 (patch)
tree9cfeddac88af1fae8b2b9f9777d7e513d52fdfb8 /MediaBrowser.Api/NotificationsService.cs
parente83a3e710be75da138ef7b79d7351a4075151efc (diff)
added dashboard tour
Diffstat (limited to 'MediaBrowser.Api/NotificationsService.cs')
-rw-r--r--MediaBrowser.Api/NotificationsService.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Api/NotificationsService.cs b/MediaBrowser.Api/NotificationsService.cs
index 51a080106..69f1f3489 100644
--- a/MediaBrowser.Api/NotificationsService.cs
+++ b/MediaBrowser.Api/NotificationsService.cs
@@ -157,7 +157,12 @@ namespace MediaBrowser.Api
private Task MarkRead(string idList, string userId, bool read)
{
- var ids = idList.Split(',');
+ var ids = (idList ?? string.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
+
+ if (ids.Length == 0)
+ {
+ return _notificationsRepo.MarkAllRead(userId, read, CancellationToken.None);
+ }
return _notificationsRepo.MarkRead(ids, userId, read, CancellationToken.None);
}