This allows user to translate own post (#4648)

This allows user to translate own post
Closes #4645
This commit is contained in:
andrewhamilton0 2024-09-04 15:35:27 -04:00 committed by GitHub
commit 60a1922db6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -241,7 +241,7 @@ abstract class SFragment(@LayoutRes contentLayoutId: Int) : Fragment(contentLayo
)
}
// translation not there for your own posts, posts already in your language or non-public posts
// translation not there for posts already in your language or non-public posts
menu.findItem(R.id.status_translate)?.let { translateItem ->
translateItem.isVisible = onMoreTranslate != null &&
!status.language.equals(Locale.getDefault().language, ignoreCase = true) &&