Skip to content

Commit

Permalink
Merge pull request #81 from catchroom/develop
Browse files Browse the repository at this point in the history
Develop ๋ฐฐํฌ
  • Loading branch information
sungjiwoon authored Jan 26, 2024
2 parents 4fbddb0 + 0947fc2 commit 5278294
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ private void setNewChatRoomInfo(ChatMessageDto chatMessage, String accessToken)
ChatRoomListGetResponse newChatRoomListResponse = null;

//๋ ˆ๋””์Šค์— ํ•ด๋‹น ์ฑ„ํŒ…๋ฐฉ์ด ์ €์žฅ์ด ์•ˆ๋˜์–ด ์žˆ๋‹ค๋ฉด ์ถ”๊ฐ€ํ•ด์ค€๋‹ค.


if (!chatRoomRedisRepository.existChatRoom(chatMessage.getUserId(), chatMessage.getRoomId())) {
newChatRoomListResponse = chatRoomService.getChatRoomInfo(accessToken, chatMessage.getRoomId());
} else {
Expand All @@ -94,7 +96,8 @@ private void setNewChatRoomInfo(ChatMessageDto chatMessage, String accessToken)

newChatRoomListResponse.updateChatMessageDto(chatMessage);

chatRoomRedisRepository.setChatRoom(chatMessage.getUserId(), chatMessage.getRoomId(), newChatRoomListResponse);
chatRoomRedisRepository.setChatRoom(newChatRoomListResponse.getSellerId(), chatMessage.getRoomId(), newChatRoomListResponse);
chatRoomRedisRepository.setChatRoom(newChatRoomListResponse.getBuyerId(), chatMessage.getRoomId(), newChatRoomListResponse);

}

Expand Down

0 comments on commit 5278294

Please sign in to comment.