refactor: Use the `minutes` helper to create the duration (#581)

This commit is contained in:
Nik Clayton 2024-04-01 20:14:19 +02:00 committed by GitHub
parent 55c12dde44
commit c45408088a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -65,8 +65,7 @@ import com.mikepenz.iconics.utils.colorInt
import com.mikepenz.iconics.utils.sizeDp
import dagger.hilt.android.AndroidEntryPoint
import javax.inject.Inject
import kotlin.time.DurationUnit
import kotlin.time.toDuration
import kotlin.time.Duration.Companion.minutes
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.filterNotNull
@ -190,7 +189,7 @@ class ConversationsFragment :
adapter.itemCount,
listOf(StatusBaseViewHolder.Key.KEY_CREATED),
)
delay(1.toDuration(DurationUnit.MINUTES))
delay(1.minutes)
}
}
}