|
@@ -5776,7 +5776,7 @@ extension EditorPersonal: UITableViewDelegate, UITableViewDataSource {
|
|
|
if let index = self.dataMessages.firstIndex(where: {$0["message_id"] as? String == dataMessages[indexPath.row]["message_id"] as? String}) {
|
|
|
self.dataMessages[index]["status"] = "8"
|
|
|
let section = self.dataDates.firstIndex(of: self.dataMessages[index]["chat_date"] as! String)
|
|
|
- let row = self.dataMessages.filter({$0["chat_date"] as! String == self.dataMessages[index]["chat_date"] as! String}).firstIndex(where: { $0["message_id"] as? String == self.dataMessages[indexPath.row]["message_id"] as? String})
|
|
|
+ let row = self.dataMessages.filter({ $0["chat_date"] as! String == self.dataDates[section!]}).firstIndex(where: { $0["message_id"] as! String == self.dataMessages[index]["message_id"] as! String})
|
|
|
if row != nil && section != nil {
|
|
|
self.tableChatView.reloadRows(at: [IndexPath(row: row!, section: section!)], with: .none)
|
|
|
}
|