fix: add missing compose predefined text for reply and hashtag

This commit is contained in:
CMK 2021-06-30 15:43:19 +08:00
parent 6126c15c66
commit 78436dbb56
1 changed files with 4 additions and 1 deletions

View File

@ -236,6 +236,10 @@ extension ComposeViewModel: UITableViewDataSource {
}
// configure author
ComposeStatusSection.configureStatusContent(cell: cell, attribute: composeStatusAttribute)
// configure content. bind text in UITextViewDelegate
if let composeContent = composeStatusAttribute.composeContent.value {
cell.metaText.textView.text = composeContent
}
// configure content warning
cell.statusContentWarningEditorView.textView.text = composeStatusAttribute.contentWarningContent.value
// bind content warning
@ -254,7 +258,6 @@ extension ComposeViewModel: UITableViewDataSource {
}
}
.store(in: &cell.disposeBag)
cell.contentWarningContent
.removeDuplicates()
.receive(on: DispatchQueue.main)