Enable sending messages with pills

This commit is contained in:
aringenbach
2022-05-02 13:35:35 +02:00
parent 968c2e34c5
commit 8d65cd8a40
17 changed files with 555 additions and 175 deletions

View File

@@ -51,6 +51,13 @@ class RoomInputToolbarTextView: UITextView {
}
override var text: String! {
didSet {
assert(false)
updateUI()
}
}
override var attributedText: NSAttributedString! {
didSet {
updateUI()
}
@@ -89,7 +96,7 @@ class RoomInputToolbarTextView: UITextView {
override func draw(_ rect: CGRect) {
super.draw(rect)
guard text.isEmpty, let placeholder = placeholder else {
guard attributedText.length == 0, let placeholder = placeholder else {
return
}