From d1512f418fca4e04c7ae7a3f5a8fa7c787372404 Mon Sep 17 00:00:00 2001 From: Klaus Date: Fri, 6 Feb 2026 14:40:14 +0900 Subject: [PATCH] =?UTF-8?q?GetRoomInfoResponse=EC=97=90=20=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EB=B8=8C=20=EA=B4=80=EC=8B=AC=EC=82=AC=20tags=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../co/vividnext/sodalive/live/room/LiveRoomService.kt | 10 ++++++++-- .../sodalive/live/room/info/GetRoomInfoResponse.kt | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt index 691d6567..8e9c16cb 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt @@ -522,10 +522,9 @@ class LiveRoomService( title = room.title, notice = room.notice, price = room.price, - tags = room.tags.asSequence() + tags = room.tags .filter { it.tag.isActive } .map { it.tag.tag } - .toList() .let { tags -> applyLanguageTagToRoomTags(room.member?.id, tags, languageTagByMemberId) }, numberOfParticipantsTotal = room.numberOfPeople, numberOfParticipants = 0, @@ -956,6 +955,12 @@ class LiveRoomService( } val menuPan = menuService.getLiveMenu(creatorId = room.member!!.id!!) + val languageTagByMemberId = buildLanguageTagMap(listOfNotNull(room.member?.id)) + + val tags = room.tags + .filter { it.tag.isActive } + .map { it.tag.tag } + .let { tags -> applyLanguageTagToRoomTags(room.member?.id, tags, languageTagByMemberId) } return GetRoomInfoResponse( roomId = roomId, @@ -993,6 +998,7 @@ class LiveRoomService( managerList = roomInfo.managerList, donationRankingTop3UserIds = donationRankingTop3UserIds, menuPan = menuPan?.menu ?: "", + tags = tags, isPrivateRoom = room.type == LiveRoomType.PRIVATE, password = room.password, isActiveRoulette = isActiveRoulette diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt index d4d536e8..f8f8b6d1 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt @@ -20,6 +20,7 @@ data class GetRoomInfoResponse( val managerList: List, val donationRankingTop3UserIds: List, val menuPan: String, + val tags: List, val isPrivateRoom: Boolean = false, val password: String? = null, val isActiveRoulette: Boolean = false