mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
style: spotless formatting for CardFeedContentState
This commit is contained in:
+6
-2
@@ -62,7 +62,6 @@ import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.asStateFlow
|
||||
import kotlinx.coroutines.launch
|
||||
import java.time.Instant
|
||||
import java.time.LocalDate
|
||||
import java.time.ZoneId
|
||||
|
||||
@Stable
|
||||
@@ -273,7 +272,12 @@ class CardFeedContentState(
|
||||
// reaction/zap/repost — a meaningful GC saving on full feed conversions.
|
||||
val zone = ZoneId.systemDefault()
|
||||
|
||||
fun epochDay(createdAt: Long?): Long = Instant.ofEpochSecond(createdAt ?: 0L).atZone(zone).toLocalDate().toEpochDay()
|
||||
fun epochDay(createdAt: Long?): Long =
|
||||
Instant
|
||||
.ofEpochSecond(createdAt ?: 0L)
|
||||
.atZone(zone)
|
||||
.toLocalDate()
|
||||
.toEpochDay()
|
||||
|
||||
val allBaseNotes = zapsPerEvent.keys + boostsPerEvent.keys + reactionsPerEvent.keys + nutzapsPerEvent.keys
|
||||
val multiCards =
|
||||
|
||||
Reference in New Issue
Block a user