fix(chat): Direct 대화방 진입을 분기한다
This commit is contained in:
@@ -519,9 +519,14 @@ struct MainView: View {
|
||||
viewModel.currentTab = .chat
|
||||
}
|
||||
|
||||
private func handleFollowingChatRoomTap(roomId: Int) {
|
||||
private func handleFollowingChatRoomTap(roomId: Int, chatType: String) {
|
||||
guard roomId > 0 else { return }
|
||||
appState.setAppStep(step: .chatRoom(id: roomId))
|
||||
|
||||
if chatType == "DM" {
|
||||
appState.setAppStep(step: .userCreatorChatRoom(roomId: roomId))
|
||||
} else {
|
||||
appState.setAppStep(step: .chatRoom(id: roomId))
|
||||
}
|
||||
}
|
||||
|
||||
private func handleFollowingScheduleTap(type: CreatorActivityType, targetId: Int) {
|
||||
|
||||
Reference in New Issue
Block a user