mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix message composer presendCallback warnings
This commit is contained in:
committed by
Stefan Ceriu
parent
37ed7addf5
commit
a5fe629790
+5
-2
@@ -189,8 +189,11 @@ private class ElementTextView: UITextView, PillAttachmentViewProviderDelegate {
|
||||
|
||||
super.init(frame: .zero, textContainer: nil)
|
||||
|
||||
presendCallback.wrappedValue = { [weak self] in
|
||||
self?.acceptCurrentSuggestion()
|
||||
// Avoid `Publishing changes from within view update` warnings
|
||||
DispatchQueue.main.async {
|
||||
presendCallback.wrappedValue = { [weak self] in
|
||||
self?.acceptCurrentSuggestion()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user