/** * Returns first unread post for current user. If no unread post * information has been set explicitly this method will return * first topic's post id, considering all topic as unread. * * @return returns first unread post id for the current user */ public Long getFirstUnreadPostId() { if (isHasUpdates()) { return getFirstNewerPost(lastReadPostDate).getId(); } return getFirstPost().getId(); }