autocomplete: add space after replacing occurances

This is more intuitive
This commit is contained in:
William Casarin committed 2023-01-28 15:50:42 -08:00
1 parent b6b6d033a8
commit 3af9131afe
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ struct UserSearch: View {
guard let pk = bech32_pubkey(user.pubkey) else {
return
}
post = post.replacingOccurrences(of: "@"+search, with: "@"+pk)
post = post.replacingOccurrences(of: "@"+search, with: "@"+pk+" ")
}
}
}