mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-07-15 22:22:47 +02:00
filter out drafts that are not same author as current account
This commit is contained in:
@ -268,7 +268,7 @@ fun RenderThreadFeed(
|
|||||||
contentPadding = FeedPadding,
|
contentPadding = FeedPadding,
|
||||||
state = listState,
|
state = listState,
|
||||||
) {
|
) {
|
||||||
itemsIndexed(items.list, key = { _, item -> item.idHex }) { index, item ->
|
itemsIndexed(items.list.filter { !it.isDraft() || (it.author?.pubkeyHex == accountViewModel.account.userProfile().pubkeyHex) }, key = { _, item -> item.idHex }) { index, item ->
|
||||||
val level = viewModel.levelFlowForItem(item).collectAsStateWithLifecycle(0)
|
val level = viewModel.levelFlowForItem(item).collectAsStateWithLifecycle(0)
|
||||||
|
|
||||||
val modifier =
|
val modifier =
|
||||||
|
Reference in New Issue
Block a user