diff --git a/SOPT-32nd-APP4-CarrotiOS/SOPT-32nd-APP4-CarrotiOS/Presentation/Chat/ChatViewController.swift b/SOPT-32nd-APP4-CarrotiOS/SOPT-32nd-APP4-CarrotiOS/Presentation/Chat/ChatViewController.swift index 568da8e..fc24fa6 100644 --- a/SOPT-32nd-APP4-CarrotiOS/SOPT-32nd-APP4-CarrotiOS/Presentation/Chat/ChatViewController.swift +++ b/SOPT-32nd-APP4-CarrotiOS/SOPT-32nd-APP4-CarrotiOS/Presentation/Chat/ChatViewController.swift @@ -22,6 +22,7 @@ final class ChatViewController: UIViewController { var chatContentOrder : [String] = [] var chatTimeOrder: [String] = [] + var chatRoom: Int = 1 //MARK: Components let headerView = HeaderView() @@ -191,7 +192,7 @@ extension ChatViewController { private func chatData() { //TODO: 이전 뷰에서 RoomId 받아옴 - ChatService.shared.chat(chatRoomId: 2) { response in + ChatService.shared.chat(chatRoomId: chatRoom) { response in switch response { case .success(let data): guard let data = data as? Chat else { return }