3891: Remove unnecessary if (use "this.hashtag" consistently)
This commit is contained in:
parent
6bd1c234d2
commit
35fd702472
|
@ -175,7 +175,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
|
||||||
*/
|
*/
|
||||||
private fun updateMuteTagMenuItems() {
|
private fun updateMuteTagMenuItems() {
|
||||||
val tag = hashtag ?: return
|
val tag = hashtag ?: return
|
||||||
val hashedTag = if (tag.startsWith('#')) tag else "#$tag"
|
val hashedTag = "#$tag"
|
||||||
|
|
||||||
muteTagItem?.isVisible = true
|
muteTagItem?.isVisible = true
|
||||||
muteTagItem?.isEnabled = false
|
muteTagItem?.isEnabled = false
|
||||||
|
@ -230,7 +230,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
|
||||||
|
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
var filterCreateSuccess = false
|
var filterCreateSuccess = false
|
||||||
val hashedTag = if (tag.startsWith('#')) tag else "#$tag"
|
val hashedTag = "#$tag"
|
||||||
|
|
||||||
mastodonApi.createFilter(
|
mastodonApi.createFilter(
|
||||||
title = "#$tag",
|
title = "#$tag",
|
||||||
|
|
Loading…
Reference in New Issue