Skip to content

Commit

Permalink
Feat [#36] roomId 받아올 변수 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
chaentopia committed May 26, 2023
1 parent 0802f34 commit ddc257e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ final class ChatViewController: UIViewController {

var chatContentOrder : [String] = []
var chatTimeOrder: [String] = []
var chatRoom: Int = 1

//MARK: Components
let headerView = HeaderView()
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit ddc257e

Please sign in to comment.