Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ public record ChatMessageMatchResult(
LocalDateTime matchedMessageSentAt,

@Schema(description = "검색에 매칭된 메시지 ID", example = "42", requiredMode = REQUIRED)
Integer matchedMessageId
Integer matchedMessageId,

@Schema(description = "읽지 않은 메시지 수", example = "3", requiredMode = REQUIRED)
Integer unreadCount,

@Schema(description = "채팅방 알림 뮤트 여부", example = "false", requiredMode = REQUIRED)
Boolean isMuted
) {

public static ChatMessageMatchResult from(ChatRoomSummaryResponse room, ChatMessage message) {
Expand All @@ -43,7 +49,9 @@ public static ChatMessageMatchResult from(ChatRoomSummaryResponse room, ChatMess
room.roomImageUrl(),
message.getContent(),
message.getCreatedAt(),
message.getId()
message.getId(),
room.unreadCount(),
room.isMuted()
);
}
}
Loading