1
0
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:
CMK 2022-11-19 01:01:27 +08:00 committed by GitHub
commit 73f7814e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):