Skip to content

Commit

Permalink
filter "none" notification channel - fix #1046
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Development committed Dec 30, 2021
1 parent 9700aac commit 6df7ea3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,11 @@ public LazyList<RssItem> getAllUnreadRssItemsForWidget() {

public Set<String> getNotificationGroups() {
List<Feed> feeds = daoSession.getFeedDao().loadAll();
String[] notificationChannelsGroups = feeds.stream().map(Feed::getNotificationChannel).toArray(String[]::new);
String[] notificationChannelsGroups = feeds
.stream()
.map(Feed::getNotificationChannel)
.filter(nc -> !nc.equals("none"))
.toArray(String[]::new);
return new HashSet<>(Arrays.asList(notificationChannelsGroups));
}

Expand Down

0 comments on commit 6df7ea3

Please sign in to comment.