add names to boolean params
This commit is contained in:
@@ -226,7 +226,7 @@ class AppModules(
|
||||
val relayStats = RelayStats(client)
|
||||
|
||||
// Logs debug messages when needed
|
||||
val detailedLogger = if (isDebug) RelayLogger(client, false, false) else null
|
||||
val detailedLogger = if (isDebug) RelayLogger(client, debugSending = false, debugReceiving = false) else null
|
||||
val relayReqStats = if (isDebug) RelayReqStats(client) else null
|
||||
val logger = if (isDebug) RelaySpeedLogger(client) else null
|
||||
|
||||
|
||||
@@ -649,12 +649,12 @@ fun RenderPollGameResultsPreview() {
|
||||
Column(Modifier.padding(10.dp)) {
|
||||
RenderPoll(
|
||||
note,
|
||||
false,
|
||||
true,
|
||||
2,
|
||||
remember { mutableStateOf(Color.Transparent) },
|
||||
mockAccountViewModel(),
|
||||
EmptyNav(),
|
||||
makeItShort = false,
|
||||
canPreview = true,
|
||||
quotesLeft = 2,
|
||||
backgroundColor = remember { mutableStateOf(Color.Transparent) },
|
||||
accountViewModel = mockAccountViewModel(),
|
||||
nav = EmptyNav(),
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -758,12 +758,12 @@ fun RenderPollColorResultsPreview() {
|
||||
Column(Modifier.padding(10.dp)) {
|
||||
RenderPoll(
|
||||
note,
|
||||
false,
|
||||
true,
|
||||
2,
|
||||
remember { mutableStateOf(Color.Transparent) },
|
||||
mockAccountViewModel(),
|
||||
EmptyNav(),
|
||||
makeItShort = false,
|
||||
canPreview = true,
|
||||
quotesLeft = 2,
|
||||
backgroundColor = remember { mutableStateOf(Color.Transparent) },
|
||||
accountViewModel = mockAccountViewModel(),
|
||||
nav = EmptyNav(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,12 +139,12 @@ fun TorrentCommentPreview() {
|
||||
toPreview = {
|
||||
RenderTorrentComment(
|
||||
comment,
|
||||
false,
|
||||
true,
|
||||
3,
|
||||
ReplyRenderType.FULL,
|
||||
remember { mutableStateOf(Color.Transparent) },
|
||||
EmptyState,
|
||||
makeItShort = false,
|
||||
canPreview = true,
|
||||
quotesLeft = 3,
|
||||
unPackReply = ReplyRenderType.FULL,
|
||||
backgroundColor = remember { mutableStateOf(Color.Transparent) },
|
||||
editState = EmptyState,
|
||||
accountViewModel = accountViewModel,
|
||||
nav = nav,
|
||||
)
|
||||
|
||||
+3
-3
@@ -357,10 +357,10 @@ class AccountViewModel(
|
||||
|
||||
return if (isPostHidden || isDecryptedPostHidden) {
|
||||
// Spam + Blocked Users + Hidden Words + Sensitive Content
|
||||
NoteComposeReportState(isPostHidden, false, false, isHiddenAuthor)
|
||||
NoteComposeReportState(isPostHidden, isAcceptable = false, canPreview = false, isHiddenAuthor = isHiddenAuthor)
|
||||
} else if (isFromLoggedIn || isFromLoggedInFollow) {
|
||||
// No need to process if from trusted people
|
||||
NoteComposeReportState(isPostHidden, true, true, isHiddenAuthor)
|
||||
NoteComposeReportState(isPostHidden, isAcceptable = true, canPreview = true, isHiddenAuthor = isHiddenAuthor)
|
||||
} else {
|
||||
val newCanPreview = !note.hasAnyReports()
|
||||
|
||||
@@ -368,7 +368,7 @@ class AccountViewModel(
|
||||
|
||||
if (newCanPreview && newIsAcceptable) {
|
||||
// No need to process reports if nothing is wrong
|
||||
NoteComposeReportState(isPostHidden, true, true, false)
|
||||
NoteComposeReportState(isPostHidden, isAcceptable = true, canPreview = true, isHiddenAuthor = false)
|
||||
} else {
|
||||
NoteComposeReportState(
|
||||
isPostHidden,
|
||||
|
||||
+2
-2
@@ -222,8 +222,8 @@ fun RenderRelayLinePreview() {
|
||||
"wss://nos.lol",
|
||||
"http://icon.com/icon.ico",
|
||||
Modifier,
|
||||
true,
|
||||
true,
|
||||
showPicture = true,
|
||||
loadRobohash = true,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -189,7 +189,7 @@ fun RenderContentDVMThumb(
|
||||
card.personalized?.let {
|
||||
var color = Color.DarkGray
|
||||
var name = "generic"
|
||||
if (card.personalized == true) {
|
||||
if (card.personalized) {
|
||||
color = MaterialTheme.colorScheme.bitcoinColor
|
||||
name = "Personalized"
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -376,7 +376,7 @@ fun MutedWordActionOptions(
|
||||
) {
|
||||
val isMutedWord by observeAccountIsHiddenWord(accountViewModel.account, word)
|
||||
|
||||
if (isMutedWord == true) {
|
||||
if (isMutedWord) {
|
||||
ShowWordButton {
|
||||
if (!accountViewModel.isWriteable()) {
|
||||
accountViewModel.toastManager.toast(
|
||||
|
||||
+6
-6
@@ -635,12 +635,12 @@ private fun FullBleedNoteCompose(
|
||||
} else if (noteEvent is InteractiveStoryBaseEvent) {
|
||||
RenderInteractiveStory(
|
||||
baseNote,
|
||||
false,
|
||||
true,
|
||||
3,
|
||||
backgroundColor,
|
||||
accountViewModel,
|
||||
nav,
|
||||
makeItShort = false,
|
||||
canPreview = true,
|
||||
quotesLeft = 3,
|
||||
backgroundColor = backgroundColor,
|
||||
accountViewModel = accountViewModel,
|
||||
nav = nav,
|
||||
)
|
||||
} else if (noteEvent is GitPatchEvent) {
|
||||
RenderGitPatchEvent(baseNote, makeItShort = false, canPreview = true, quotesLeft = 3, backgroundColor = backgroundColor, accountViewModel = accountViewModel, nav = nav)
|
||||
|
||||
Reference in New Issue
Block a user