Clean up ahead of PR.
This commit is contained in:
parent
dc4e174e86
commit
63637af240
|
@ -135,7 +135,7 @@ public class ConversationMediaView: UIView {
|
|||
} else if attachmentStream.isVideo {
|
||||
configureForVideo(attachmentStream: attachmentStream)
|
||||
} else {
|
||||
// owsFailDebug("Attachment has unexpected type.")
|
||||
owsFailDebug("Attachment has unexpected type.")
|
||||
configure(forError: .invalid)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -229,8 +229,8 @@ class AttachmentCaptionViewController: OWSViewController {
|
|||
|
||||
let contentSize = textView.sizeThatFits(CGSize(width: textView.width(), height: CGFloat.greatestFiniteMagnitude))
|
||||
|
||||
// `textView.contentSize` isn't accurate when restoring a multiline draft, so we compute it here.
|
||||
textView.contentSize = contentSize
|
||||
// `textView.contentSize` isn't accurate when restoring a multiline draft, so we compute it here.
|
||||
textView.contentSize = contentSize
|
||||
|
||||
let minHeight: CGFloat = textView.font?.lineHeight ?? 0
|
||||
let maxHeight = minHeight * 4
|
||||
|
|
|
@ -11,7 +11,6 @@ public protocol ImageEditorBrushViewControllerDelegate: class {
|
|||
|
||||
// MARK: -
|
||||
|
||||
// A view for editing text item in image editor.
|
||||
public class ImageEditorBrushViewController: OWSViewController {
|
||||
|
||||
private weak var delegate: ImageEditorBrushViewControllerDelegate?
|
||||
|
|
Loading…
Reference in New Issue