1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-31 17:04:59 +01:00

Merge pull request #1256 from Xefir/remove_own_mention_mastodon

Remove your own mention in conversation
This commit is contained in:
Tlaster 2020-04-20 18:16:41 +08:00 committed by GitHub
commit 950c6c0b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1000,6 +1000,7 @@ class ComposeActivity : BaseActivity(), OnMenuItemClickListener, OnClickListener
}
AccountType.MASTODON -> {
addMastodonMentions(status.text_unescaped, status.spans, mentions)
mentions.remove("${accountUser.screen_name}@${accountUser.key.host}")
}
else -> if (status.mentions.isNotNullOrEmpty()) {
status.mentions.filterNot {