mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-18 19:53:28 +01:00
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? = {
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user