1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-22 13:24:46 +01:00

3891: Remove unnecessary if (use "this.hashtag" consistently)

This commit is contained in:
Lakoja 2023-08-07 10:12:57 +02:00
parent 6bd1c234d2
commit 35fd702472

View File

@ -175,7 +175,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
*/
private fun updateMuteTagMenuItems() {
val tag = hashtag ?: return
val hashedTag = if (tag.startsWith('#')) tag else "#$tag"
val hashedTag = "#$tag"
muteTagItem?.isVisible = true
muteTagItem?.isEnabled = false
@ -230,7 +230,7 @@ class StatusListActivity : BottomSheetActivity(), HasAndroidInjector {
lifecycleScope.launch {
var filterCreateSuccess = false
val hashedTag = if (tag.startsWith('#')) tag else "#$tag"
val hashedTag = "#$tag"
mastodonApi.createFilter(
title = "#$tag",