mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
fix: reply crate duplicate mention issue. resolve #293
This commit is contained in:
parent
2ef55bc5ca
commit
7113fc037c
@ -151,7 +151,9 @@ final class ComposeViewModel: NSObject {
|
|||||||
.sorted(by: { $0.index.intValue < $1.index.intValue })
|
.sorted(by: { $0.index.intValue < $1.index.intValue })
|
||||||
.filter { $0.id != composeAuthor?.id }
|
.filter { $0.id != composeAuthor?.id }
|
||||||
for mention in mentions {
|
for mention in mentions {
|
||||||
mentionAccts.append("@" + mention.acct)
|
let acct = "@" + mention.acct
|
||||||
|
guard !mentionAccts.contains(acct) else { continue }
|
||||||
|
mentionAccts.append(acct)
|
||||||
}
|
}
|
||||||
for acct in mentionAccts {
|
for acct in mentionAccts {
|
||||||
UITextChecker.learnWord(acct)
|
UITextChecker.learnWord(acct)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user