Skip to content

Commit

Permalink
Merge pull request #61 from oven-2023/feature/chat
Browse files Browse the repository at this point in the history
fix: edit message list response
  • Loading branch information
haen-su authored Nov 7, 2023
2 parents f853ffc + a418542 commit 32bdc96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public EnterChatroomResponse enterChatroom(User user, Long chatroomId) {
.map(
message -> MessageListResponse.builder()
.content(message.getContent())
.isSender(message.getSender() == user)
.isSender(message.getSender().getId().equals(user.getId()))
.sendTime(message.getCreatedAt())
.build()
)
Expand Down

0 comments on commit 32bdc96

Please sign in to comment.