File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
src/main/java/ita/tinybite/domain/chat/service Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,10 @@ public class ChatRoomService {
4242 public List <OneToOneChatRoomResDto > getOneToOneRooms () {
4343 User user = securityProvider .getCurrentUser ();
4444
45- List <ChatRoom > chatRooms = partyParticipantRepository .findByUser (user ).stream ()
46- .filter (partyParticipant -> partyParticipant .getOneToOneChatRoom () != null )
47- .map (PartyParticipant ::getOneToOneChatRoom )
48- .filter (chatRoom -> chatRoom .getType () == ChatRoomType .ONE_TO_ONE )
49- .toList ();
50- // // 유저가 참여 중인 chatRoom (이면서 일대일 채팅만)
51- // List<ChatRoom> chatRooms = chatRoomMemberRepository.findByUser(user).stream()
52- // .map(ChatRoomMember::getChatRoom)
53- // .filter(chatRoom -> chatRoom.getType().equals(ChatRoomType.ONE_TO_ONE)).toList();
45+ // 유저가 참여 중인 chatRoom (이면서 일대일 채팅만)
46+ List <ChatRoom > chatRooms = chatRoomMemberRepository .findByUser (user ).stream ()
47+ .map (ChatRoomMember ::getChatRoom )
48+ .filter (chatRoom -> chatRoom .getType ().equals (ChatRoomType .ONE_TO_ONE )).toList ();
5449
5550 return chatRooms .stream ()
5651 .map (chatRoom -> {
You can’t perform that action at this time.
0 commit comments