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
1 changed files with 1 additions and 0 deletions

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 {