Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trello.com/c/b82n6AMp adding cost to media/files #638

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

leonid174
Copy link
Collaborator

No description provided.

@@ -1060,6 +1063,29 @@ extension ChatViewModel {
self?.dateHeaderHidden = true
}
}

func inputTextFileUpdated() {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove this extra space

@@ -938,6 +938,9 @@ final class ChatViewModel: NSObject {
}

filesPicked = oldFiles

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not add extra spaces between simple lined of code

filesText = filesPicked.map{
($0.name ?? "") + ($0.extenstion ?? "")
}.joined(separator: "")
}
Copy link
Member

@just-software-dev just-software-dev Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let filesText = filesPicked?.map {
   [$0.name, $0.extenstion].compactMap { $0 }.joined(separator: ".")
}?.joined(separator: ";") ?? .empty

@@ -1060,6 +1063,29 @@ extension ChatViewModel {
self?.dateHeaderHidden = true
}
}

func inputTextFileUpdated() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename to inputContentUpdated

@@ -943,6 +943,7 @@ private extension ChatViewController {
func closeFileToolbarView() {
filesToolbarView.removeFromSuperview()
messageInputBar.invalidateIntrinsicContentSize()
viewModel.inputTextFileUpdated()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not do it here.

@ObservableValue var filesPicked: [FileResult]?

We can easily observe new files from the ChatViewModel

"revision": "ac6c0fc9da221873e01bd1a0d4818498a71eef33",
"version": "4.0.6"
"revision": "c6bfd1af48efcc9a9ad203665db12375ba6b145a",
"version": "4.0.8"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove packages updating

@@ -938,6 +938,8 @@ final class ChatViewModel: NSObject {
}

filesPicked = oldFiles
inputContentUpdated()
Copy link
Member

@just-software-dev just-software-dev Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove, because you already have the subscription

Copy link
Member

@just-software-dev just-software-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check the comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants