Removes the time logger for note rendering
This commit is contained in:
@@ -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,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user