diff --git a/Zatch/Presentation/ViewControllers/Chatting/ChattingRoomViewController.swift b/Zatch/Presentation/ViewControllers/Chatting/ChattingRoomViewController.swift index 538213c4..5db60919 100644 --- a/Zatch/Presentation/ViewControllers/Chatting/ChattingRoomViewController.swift +++ b/Zatch/Presentation/ViewControllers/Chatting/ChattingRoomViewController.swift @@ -27,19 +27,7 @@ class ChattingRoomViewController: BaseViewController Int { - return messageData.count + viewModel.messages.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - let chatData = messageData[indexPath.row] + let chatData = viewModel.messages[indexPath.row] switch chatData.chatType { case .RightMessage: