fix(chat): Direct 대화방 진입을 분기한다

This commit is contained in:
Yu Sung
2026-07-12 23:40:39 +09:00
parent c9570fc735
commit dbf696978f
7 changed files with 23 additions and 17 deletions

View File

@@ -3,12 +3,12 @@ import SwiftUI
struct MainHomeFollowingChatSection: View {
let recentChats: [ChatRoomListItemResponse]
let onTapTitle: () -> Void
let onTapChatRoom: (Int) -> Void
let onTapChatRoom: (Int, String) -> Void
init(
recentChats: [ChatRoomListItemResponse],
onTapTitle: @escaping () -> Void = {},
onTapChatRoom: @escaping (Int) -> Void = { _ in }
onTapChatRoom: @escaping (Int, String) -> Void = { _, _ in }
) {
self.recentChats = recentChats
self.onTapTitle = onTapTitle
@@ -24,7 +24,7 @@ struct MainHomeFollowingChatSection: View {
LazyHStack(alignment: .top, spacing: SodaSpacing.s8) {
ForEach(recentChats) { chat in
MainHomeFollowingChatItemView(chat: chat) {
onTapChatRoom(chat.roomId)
onTapChatRoom(chat.roomId, chat.chatType)
}
}
}