From 7a084a589ed1b43cb59dc323388b31b28b0d3d91 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 4 Oct 2014 14:05:24 -0400 Subject: added dashboard tour --- MediaBrowser.Api/NotificationsService.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Api/NotificationsService.cs') diff --git a/MediaBrowser.Api/NotificationsService.cs b/MediaBrowser.Api/NotificationsService.cs index 51a0801060..69f1f34891 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); } -- cgit v1.2.3