-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
base: develop
Are you sure you want to change the base?
Conversation
@@ -1060,6 +1063,29 @@ extension ChatViewModel { | |||
self?.dateHeaderHidden = true | |||
} | |||
} | |||
|
|||
func inputTextFileUpdated() { | |||
|
There was a problem hiding this comment.
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 | |||
|
There was a problem hiding this comment.
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: "") | ||
} |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the comments
No description provided.