Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 7 years ago
parent 7f5847d2d5
commit ebde769161

@ -183,7 +183,7 @@ class AttachmentApprovalViewController: UIViewController {
? numberFormatter.string(from: NSNumber(value: fileSize / kOneKilobyte))! + " kb"
: numberFormatter.string(from: NSNumber(value: fileSize))!))
fileSizeLabel.text = String(format:NSLocalizedString("ATTACHMENT_APPROVAL_FILE_SIZE_FORMAT",
comment: "Format string for file size label in call interstitial view"),
comment: "Format string for file size label in call interstitial view. Embeds: {{file size as 'N mb' or 'N kb'}}."),
fileSizeText)
fileSizeLabel.textColor = UIColor.white

@ -126,7 +126,8 @@ class SignalAttachment: NSObject {
do {
try data.write(to: fileUrl)
} catch {
Logger.info("\(SignalAttachment.TAG) Could not write data to disk: \(dataUTI)")
Logger.error("\(SignalAttachment.TAG) Could not write data to disk: \(dataUTI)")
assertionFailure()
return nil
}
temporaryDataUrl = fileUrl

Loading…
Cancel
Save