if (filteredNotification != null) {
filteredNotifications.add(filteredNotification);
}
- } else if (notification.getId().equals("new-replies-notification")) {
+ } else if (notification.getId().equals("new-reply-notification")) {
ListNotification<Reply> filteredNotification = filterNewReplyNotification((ListNotification<Reply>) notification, currentSone);
if (filteredNotification != null) {
filteredNotifications.add(filteredNotification);
}
ListNotification<Post> filteredNotification = new ListNotification<Post>(newPostNotification);
filteredNotification.setElements(newPosts);
+ filteredNotification.setLastUpdateTime(newPostNotification.getLastUpdatedTime());
return filteredNotification;
}
}
ListNotification<Reply> filteredNotification = new ListNotification<Reply>(newReplyNotification);
filteredNotification.setElements(newReplies);
+ filteredNotification.setLastUpdateTime(newReplyNotification.getLastUpdatedTime());
return filteredNotification;
}