fix: hashtag auto complete issue

This commit is contained in:
CMK 2022-11-19 00:56:44 +08:00
parent 8335d5a6c6
commit ce076b264b
1 changed files with 4 additions and 4 deletions

View File

@ -627,10 +627,10 @@ extension ComposeContentViewController: ComposeContentViewModelDelegate {
let _replacedText: String? = {
var text: String
switch item {
case .hashtag(let hashtag):
text = "#" + hashtag.name
case .hashtagV1(let hashtagName):
text = "#" + hashtagName
case .hashtag, .hashtagV1:
// do no fill the hashtag
// allow user delete suffix and post they want
return nil
case .account(let account):
text = "@" + account.acct
case .emoji(let emoji):