PR Feedback

This commit is contained in:
Nora Trapp 2022-08-11 13:11:17 -07:00
parent 02cd514370
commit 9872111cf6
4 changed files with 1 additions and 6 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -420,8 +420,6 @@ class StoryContextViewController: OWSViewController {
}
}
if subsequentItems.count >= Self.subsequentItemsToLoad { break }
context = nextContext
}