Skip to content

Commit

Permalink
Update MessageService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-DoHa committed Nov 24, 2022
1 parent ffaf69c commit c762527
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@ public List<MessageListResponse> getMessageFeed(Long cursor, Pageable pageable,
f.setPrevCursor(messages.get(messages.size() - 1).getId());
}
}



f.setNextCursor(mainList.get(mainList.size()-1).getMessageId());
});

if(!mainList.get(mainList.size() - 1).getHaveNextMessage()) {
mainList.forEach(f -> f.setNextCursor(null));
}

return mainList;
}

Expand Down

0 comments on commit c762527

Please sign in to comment.