Skip to content

Commit

Permalink
Merge pull request #1256 from Xefir/remove_own_mention_mastodon
Browse files Browse the repository at this point in the history
Remove your own mention in conversation
  • Loading branch information
Tlaster authored Apr 20, 2020
2 parents 45bcfb5 + 619a020 commit 950c6c0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 950c6c0

Please sign in to comment.