pref: 新版贴页面跳转

This commit is contained in:
HuanCheng65 2023-07-17 13:30:27 +08:00
parent 1a97fe4f57
commit 2f1ab3b038
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
3 changed files with 15 additions and 15 deletions

View File

@ -335,7 +335,12 @@ fun ForumThreadListPage(
goodClassifyId = goodClassifyId,
goodClassifyHoldersProvider = { goodClassifies },
onItemClicked = {
navigator.navigate(ThreadPageDestination(it.threadId))
navigator.navigate(
ThreadPageDestination(
it.threadId,
threadInfo = it
)
)
},
onAgree = {
viewModel.send(

View File

@ -32,6 +32,8 @@ import com.huanchengfly.tieba.post.models.database.History
import com.huanchengfly.tieba.post.ui.common.theme.compose.ExtendedTheme
import com.huanchengfly.tieba.post.ui.page.LocalNavigator
import com.huanchengfly.tieba.post.ui.page.destinations.ForumPageDestination
import com.huanchengfly.tieba.post.ui.page.destinations.ThreadPageDestination
import com.huanchengfly.tieba.post.ui.page.thread.ThreadPageFrom
import com.huanchengfly.tieba.post.ui.widgets.Chip
import com.huanchengfly.tieba.post.ui.widgets.compose.Avatar
import com.huanchengfly.tieba.post.ui.widgets.compose.LazyLoad
@ -144,12 +146,13 @@ fun HistoryListPage(
HistoryUtil.TYPE_THREAD -> {
val extra =
if (it.extras != null) it.extras.fromJson<ThreadHistoryInfoBean>() else null
ThreadActivity.launch(
context,
it.data,
extra?.pid,
extra?.isSeeLz,
ThreadActivity.FROM_HISTORY
navigator.navigate(
ThreadPageDestination(
it.data.toLong(),
postId = extra?.pid?.toLongOrNull() ?: 0L,
seeLz = extra?.isSeeLz ?: false,
from = ThreadPageFrom.FROM_HISTORY
)
)
}
}

View File

@ -183,14 +183,6 @@ fun ThreadStorePage(
}
},
onClick = {
// ThreadActivity.launch(
// context,
// info.threadId,
// info.markPid,
// context.appPreferences.collectThreadSeeLz,
// "collect",
// info.maxPid
// )
navigator.navigate(
ThreadPageDestination(
threadId = info.threadId.toLong(),