feat(home): 팔로잉 최근 대화를 연결한다

This commit is contained in:
Yu Sung
2026-07-01 11:43:45 +09:00
parent 5761d6083b
commit 772af3dfe3
7 changed files with 194 additions and 10 deletions

View File

@@ -165,7 +165,9 @@ struct MainView: View {
onTapBanner: handleRecommendationBannerTap,
onTapFollowAll: handleRecommendationFollowAllTap,
onSelectFollowingTab: handleFollowingTabSelection,
onTapFollowingAll: handleFollowingAllTap
onTapFollowingAll: handleFollowingAllTap,
onTapChatTab: handleFollowingChatTabTap,
onTapChatRoom: handleFollowingChatRoomTap
)
case .content:
MainPlaceholderTabView(title: MainTab.content.title)
@@ -490,6 +492,15 @@ struct MainView: View {
appState.setAppStep(step: .followingList)
}
private func handleFollowingChatTabTap() {
viewModel.currentTab = .chat
}
private func handleFollowingChatRoomTap(roomId: Int) {
guard roomId > 0 else { return }
appState.setAppStep(step: .chatRoom(id: roomId))
}
private func handleFollowingTabSelection() -> Bool {
let trimmed = token.trimmingCharacters(in: .whitespacesAndNewlines)
guard !trimmed.isEmpty else {