Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf committed Jan 20, 2024
1 parent 0c538db commit dc69919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ class LinkAttachmentModel: ObservableObject {
if let task = self.uploadTask {
task.cancel()
}
self.photosPickerItem = nil
switch self.imageModel?.state {
case .uploaded(file: let file):
if let file = file {
self.photosPickerItem = nil
Task {
do {
if let compareUrl {
Expand Down
10 changes: 1 addition & 9 deletions Mlem/Views/Shared/Composer/ResponseEditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,7 @@ struct ResponseEditorView: View {
private var isReadyToReply: Bool {
editorBody.trimmed.isNotEmpty
}

func uploadImage() {
if editorModel.canUpload {
print("Uploading")
} else {
print("Uploading disabled for this sort of response")
}
}


var body: some View {
ScrollView {
VStack(spacing: AppConstants.postAndCommentSpacing) {
Expand Down

0 comments on commit dc69919

Please sign in to comment.