Merge pull request #634 from mastodon/fix/auto-complete
Fix hashtag auto complete issue
This commit is contained in:
commit
73f7814e87
|
@ -627,10 +627,10 @@ extension ComposeContentViewController: ComposeContentViewModelDelegate {
|
||||||
let _replacedText: String? = {
|
let _replacedText: String? = {
|
||||||
var text: String
|
var text: String
|
||||||
switch item {
|
switch item {
|
||||||
case .hashtag(let hashtag):
|
case .hashtag, .hashtagV1:
|
||||||
text = "#" + hashtag.name
|
// do no fill the hashtag
|
||||||
case .hashtagV1(let hashtagName):
|
// allow user delete suffix and post they want
|
||||||
text = "#" + hashtagName
|
return nil
|
||||||
case .account(let account):
|
case .account(let account):
|
||||||
text = "@" + account.acct
|
text = "@" + account.acct
|
||||||
case .emoji(let emoji):
|
case .emoji(let emoji):
|
||||||
|
|
Loading…
Reference in New Issue