Skip to content

Commit

Permalink
Merge pull request #634 from mastodon/fix/auto-complete
Browse files Browse the repository at this point in the history
Fix hashtag auto complete issue
  • Loading branch information
MainasuK authored Nov 18, 2022
2 parents c8ba933 + ce076b2 commit 73f7814
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 73f7814

Please sign in to comment.