diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-04 14:05:24 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-04 14:05:24 -0400 |
| commit | 7a084a589ed1b43cb59dc323388b31b28b0d3d91 (patch) | |
| tree | 9cfeddac88af1fae8b2b9f9777d7e513d52fdfb8 /MediaBrowser.Api/NotificationsService.cs | |
| parent | e83a3e710be75da138ef7b79d7351a4075151efc (diff) | |
added dashboard tour
Diffstat (limited to 'MediaBrowser.Api/NotificationsService.cs')
| -rw-r--r-- | MediaBrowser.Api/NotificationsService.cs | 7 |
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); } |
