Merge branch 'charlesmchen/tweakMessageMetadata'

pull/1/head
Matthew Chen 8 years ago
commit 502b41eba8

@ -162,6 +162,8 @@ class MessageMetadataViewController: OWSViewController {
// Recipient(s) // Recipient(s)
if let outgoingMessage = message as? TSOutgoingMessage { if let outgoingMessage = message as? TSOutgoingMessage {
let isGroupThread = message.thread.isGroupThread()
let recipientStatusGroups: [MessageRecipientState] = [ let recipientStatusGroups: [MessageRecipientState] = [
.read, .read,
.uploading, .uploading,
@ -189,8 +191,10 @@ class MessageMetadataViewController: OWSViewController {
} }
if groupRows.count < 1 { if groupRows.count < 1 {
if isGroupThread {
groupRows.append(valueRow(name: MessageRecipientStateName(recipientStatusGroup), groupRows.append(valueRow(name: MessageRecipientStateName(recipientStatusGroup),
value:"")) value:""))
}
addDivider() addDivider()
} }
@ -205,6 +209,7 @@ class MessageMetadataViewController: OWSViewController {
cell.accessoryView = statusLabel cell.accessoryView = statusLabel
cell.autoSetDimension(.height, toSize:ContactTableViewCell.rowHeight()) cell.autoSetDimension(.height, toSize:ContactTableViewCell.rowHeight())
cell.setContentHuggingLow() cell.setContentHuggingLow()
cell.isUserInteractionEnabled = false
groupRows.append(cell) groupRows.append(cell)
} }

Loading…
Cancel
Save