PR Feedback
This commit is contained in:
parent
02cd514370
commit
9872111cf6
@ -73,7 +73,6 @@ public class CVComponentSticker: CVComponentBase, CVComponent {
|
||||
break
|
||||
case .uploading:
|
||||
let progressView = CVAttachmentProgressView(direction: .upload(attachmentStream: attachmentStream),
|
||||
diameter: 44,
|
||||
isDarkThemeEnabled: conversationStyle.isDarkThemeEnabled,
|
||||
mediaCache: mediaCache)
|
||||
stackView.addSubview(progressView)
|
||||
@ -100,7 +99,6 @@ public class CVComponentSticker: CVComponentBase, CVComponent {
|
||||
subviews: [ placeholderView ])
|
||||
|
||||
let progressView = CVAttachmentProgressView(direction: .download(attachmentPointer: attachmentPointer),
|
||||
diameter: 44,
|
||||
isDarkThemeEnabled: conversationStyle.isDarkThemeEnabled,
|
||||
mediaCache: mediaCache)
|
||||
stackView.addSubview(progressView)
|
||||
|
||||
@ -31,7 +31,7 @@ public class CVAttachmentProgressView: ManualLayoutView {
|
||||
private var attachmentId: String { direction.attachmentId }
|
||||
|
||||
public required init(direction: Direction,
|
||||
diameter: CGFloat,
|
||||
diameter: CGFloat = 44,
|
||||
isDarkThemeEnabled: Bool,
|
||||
mediaCache: CVMediaCache) {
|
||||
self.direction = direction
|
||||
|
||||
@ -112,7 +112,6 @@ public class CVMediaView: ManualLayoutViewWithLayer {
|
||||
}
|
||||
|
||||
let progressView = CVAttachmentProgressView(direction: direction,
|
||||
diameter: 44,
|
||||
isDarkThemeEnabled: conversationStyle.isDarkThemeEnabled,
|
||||
mediaCache: mediaCache)
|
||||
addSubviewToCenterOnSuperview(progressView, size: progressView.layoutSize)
|
||||
|
||||
@ -420,8 +420,6 @@ class StoryContextViewController: OWSViewController {
|
||||
}
|
||||
}
|
||||
|
||||
if subsequentItems.count >= Self.subsequentItemsToLoad { break }
|
||||
|
||||
context = nextContext
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user