feat(home): 팔로잉 최근 대화를 연결한다
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user