Removes the time logger for note rendering

This commit is contained in:
Vitor Pamplona
2025-05-14 12:53:56 -04:00
parent 61970b8ce5
commit 6f7f8e296b
@@ -51,7 +51,6 @@ import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import com.vitorpamplona.amethyst.R import com.vitorpamplona.amethyst.R
import com.vitorpamplona.amethyst.commons.compose.produceCachedStateAsync import com.vitorpamplona.amethyst.commons.compose.produceCachedStateAsync
import com.vitorpamplona.amethyst.logTime
import com.vitorpamplona.amethyst.model.AddressableNote import com.vitorpamplona.amethyst.model.AddressableNote
import com.vitorpamplona.amethyst.model.Channel import com.vitorpamplona.amethyst.model.Channel
import com.vitorpamplona.amethyst.model.FeatureSetType import com.vitorpamplona.amethyst.model.FeatureSetType
@@ -222,37 +221,33 @@ fun NoteCompose(
accountViewModel: AccountViewModel, accountViewModel: AccountViewModel,
nav: INav, nav: INav,
) { ) {
logTime( WatchNoteEvent(
debugMessage = { "NoteCompose " + externalLinkForNote(baseNote) }, baseNote = baseNote,
accountViewModel = accountViewModel,
modifier,
) { ) {
WatchNoteEvent( CheckHiddenFeedWatchBlockAndReport(
baseNote = baseNote, note = baseNote,
modifier = modifier,
ignoreAllBlocksAndReports = isHiddenFeed,
showHiddenWarning = isQuotedNote || isBoostedNote,
accountViewModel = accountViewModel, accountViewModel = accountViewModel,
modifier, nav = nav,
) { ) { canPreview ->
CheckHiddenFeedWatchBlockAndReport( AcceptableNote(
note = baseNote, baseNote = baseNote,
modifier = modifier, modifier = modifier,
ignoreAllBlocksAndReports = isHiddenFeed, routeForLastRead = routeForLastRead,
showHiddenWarning = isQuotedNote || isBoostedNote, isBoostedNote = isBoostedNote,
isQuotedNote = isQuotedNote,
unPackReply = unPackReply,
makeItShort = makeItShort,
canPreview = canPreview,
quotesLeft = quotesLeft,
parentBackgroundColor = parentBackgroundColor,
accountViewModel = accountViewModel, accountViewModel = accountViewModel,
nav = nav, nav = nav,
) { canPreview -> )
AcceptableNote(
baseNote = baseNote,
modifier = modifier,
routeForLastRead = routeForLastRead,
isBoostedNote = isBoostedNote,
isQuotedNote = isQuotedNote,
unPackReply = unPackReply,
makeItShort = makeItShort,
canPreview = canPreview,
quotesLeft = quotesLeft,
parentBackgroundColor = parentBackgroundColor,
accountViewModel = accountViewModel,
nav = nav,
)
}
} }
} }
} }