newPosts.add(post);
}
}
+ if (newPosts.isEmpty()) {
+ return null;
+ }
if (newPosts.size() == newPostNotification.getElements().size()) {
return newPostNotification;
}
newReplies.add(reply);
}
}
+ if (newReplies.isEmpty()) {
+ return null;
+ }
if (newReplies.size() == newReplyNotification.getElements().size()) {
return newReplyNotification;
}