From 333b50a0909e5191658094ed91d9aa4556fcf288 Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Fri, 21 Jul 2023 14:47:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=A7=E5=8A=A1=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt | 4 +++- .../com/huanchengfly/tieba/post/ui/page/thread/ThreadPage.kt | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt index d04845a1..25a16160 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt @@ -35,6 +35,7 @@ import com.huanchengfly.tieba.post.R import com.huanchengfly.tieba.post.activities.UserActivity import com.huanchengfly.tieba.post.api.models.protos.SubPostList import com.huanchengfly.tieba.post.api.models.protos.User +import com.huanchengfly.tieba.post.api.models.protos.bawuType import com.huanchengfly.tieba.post.arch.ImmutableHolder import com.huanchengfly.tieba.post.arch.collectPartialAsState import com.huanchengfly.tieba.post.arch.onEvent @@ -425,7 +426,8 @@ private fun SubPostItem( author.get { nameShow } ), userLevel = author.get { level_id }, - isLz = author.get { id } == threadAuthorId + isLz = author.get { id } == threadAuthorId, + bawuType = author.get { bawuType }, ) }, desc = { diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/thread/ThreadPage.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/thread/ThreadPage.kt index 16a25165..128bee69 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/thread/ThreadPage.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/thread/ThreadPage.kt @@ -1383,7 +1383,8 @@ fun PostCard( author.nameShow ), userLevel = author.level_id, - isLz = author.id == threadAuthorId + isLz = author.id == threadAuthorId, + bawuType = author.bawuType, ) }, desc = {