|
@@ -210,7 +210,7 @@ class MessageInfo: UIViewController, UITableViewDelegate, UITableViewDataSource
|
|
if indexPath.section == 1 {
|
|
if indexPath.section == 1 {
|
|
if !data.isEmpty && data["read_receipts"] as? String == "8" {
|
|
if !data.isEmpty && data["read_receipts"] as? String == "8" {
|
|
if dataStatusAck.count == 0 || indexPath.row == dataStatusAck.count {
|
|
if dataStatusAck.count == 0 || indexPath.row == dataStatusAck.count {
|
|
- cell.addSubview(imageNil)
|
|
|
|
|
|
+ cell.contentView.addSubview(imageNil)
|
|
imageNil.anchor(centerX: cell.centerXAnchor, centerY: cell.centerYAnchor, width: 50, height: 20)
|
|
imageNil.anchor(centerX: cell.centerXAnchor, centerY: cell.centerYAnchor, width: 50, height: 20)
|
|
} else {
|
|
} else {
|
|
let dataProfile = getDataProfile(f_pin: dataStatusAck[indexPath.row]["f_pin"] as! String, message_id: data["message_id"] as! String)
|
|
let dataProfile = getDataProfile(f_pin: dataStatusAck[indexPath.row]["f_pin"] as! String, message_id: data["message_id"] as! String)
|
|
@@ -241,7 +241,7 @@ class MessageInfo: UIViewController, UITableViewDelegate, UITableViewDataSource
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if dataStatusRead.count == 0 || indexPath.row == dataStatusRead.count {
|
|
if dataStatusRead.count == 0 || indexPath.row == dataStatusRead.count {
|
|
- cell.addSubview(imageNil)
|
|
|
|
|
|
+ cell.contentView.addSubview(imageNil)
|
|
imageNil.anchor(centerX: cell.centerXAnchor, centerY: cell.centerYAnchor, width: 50, height: 20)
|
|
imageNil.anchor(centerX: cell.centerXAnchor, centerY: cell.centerYAnchor, width: 50, height: 20)
|
|
} else {
|
|
} else {
|
|
let dataProfile = getDataProfile(f_pin: dataStatusRead[indexPath.row]["f_pin"] as! String, message_id: data["message_id"] as! String)
|
|
let dataProfile = getDataProfile(f_pin: dataStatusRead[indexPath.row]["f_pin"] as! String, message_id: data["message_id"] as! String)
|
|
@@ -273,7 +273,7 @@ class MessageInfo: UIViewController, UITableViewDelegate, UITableViewDataSource
|
|
}
|
|
}
|
|
} else if indexPath.section == 2 && !data.isEmpty && data["read_receipts"] as? String == "8" {
|
|
} else if indexPath.section == 2 && !data.isEmpty && data["read_receipts"] as? String == "8" {
|
|
if dataStatusRead.count == 0 || indexPath.row == dataStatusRead.count {
|
|
if dataStatusRead.count == 0 || indexPath.row == dataStatusRead.count {
|
|
- cell.addSubview(imageNil)
|
|
|
|
|
|
+ cell.contentView.addSubview(imageNil)
|
|
imageNil.anchor(centerX: cell.centerXAnchor, centerY: cell.centerYAnchor, width: 50, height: 20)
|
|
imageNil.anchor(centerX: cell.centerXAnchor, centerY: cell.centerYAnchor, width: 50, height: 20)
|
|
} else {
|
|
} else {
|
|
let dataProfile = getDataProfile(f_pin: dataStatusRead[indexPath.row]["f_pin"] as! String, message_id: data["message_id"] as! String)
|
|
let dataProfile = getDataProfile(f_pin: dataStatusRead[indexPath.row]["f_pin"] as! String, message_id: data["message_id"] as! String)
|
|
@@ -304,7 +304,7 @@ class MessageInfo: UIViewController, UITableViewDelegate, UITableViewDataSource
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if dataStatusDelivered.count == 0 || indexPath.row == dataStatusDelivered.count {
|
|
if dataStatusDelivered.count == 0 || indexPath.row == dataStatusDelivered.count {
|
|
- cell.addSubview(imageNil)
|
|
|
|
|
|
+ cell.contentView.addSubview(imageNil)
|
|
imageNil.anchor(centerX: cell.centerXAnchor, centerY: cell.centerYAnchor, width: 50, height: 20)
|
|
imageNil.anchor(centerX: cell.centerXAnchor, centerY: cell.centerYAnchor, width: 50, height: 20)
|
|
} else {
|
|
} else {
|
|
let dataProfile = getDataProfile(f_pin: dataStatusDelivered[indexPath.row]["f_pin"] as! String, message_id: data["message_id"] as! String)
|
|
let dataProfile = getDataProfile(f_pin: dataStatusDelivered[indexPath.row]["f_pin"] as! String, message_id: data["message_id"] as! String)
|