feat: 吧务显示

This commit is contained in:
HuanCheng65 2023-07-21 14:47:01 +08:00
parent 140f8b84cb
commit 333b50a090
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
2 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@ import com.huanchengfly.tieba.post.R
import com.huanchengfly.tieba.post.activities.UserActivity import com.huanchengfly.tieba.post.activities.UserActivity
import com.huanchengfly.tieba.post.api.models.protos.SubPostList 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.User
import com.huanchengfly.tieba.post.api.models.protos.bawuType
import com.huanchengfly.tieba.post.arch.ImmutableHolder import com.huanchengfly.tieba.post.arch.ImmutableHolder
import com.huanchengfly.tieba.post.arch.collectPartialAsState import com.huanchengfly.tieba.post.arch.collectPartialAsState
import com.huanchengfly.tieba.post.arch.onEvent import com.huanchengfly.tieba.post.arch.onEvent
@ -425,7 +426,8 @@ private fun SubPostItem(
author.get { nameShow } author.get { nameShow }
), ),
userLevel = author.get { level_id }, userLevel = author.get { level_id },
isLz = author.get { id } == threadAuthorId isLz = author.get { id } == threadAuthorId,
bawuType = author.get { bawuType },
) )
}, },
desc = { desc = {

View File

@ -1383,7 +1383,8 @@ fun PostCard(
author.nameShow author.nameShow
), ),
userLevel = author.level_id, userLevel = author.level_id,
isLz = author.id == threadAuthorId isLz = author.id == threadAuthorId,
bawuType = author.bawuType,
) )
}, },
desc = { desc = {