Add 'posts & replies' view to profiles
This commit is contained in:
parent
d608d67bfe
commit
eaa2105570
3 changed files with 17 additions and 2 deletions
|
@ -121,10 +121,15 @@ export const Profile = observer(({navIdx, visible, params}: ScreenParams) => {
|
|||
} else {
|
||||
if (
|
||||
uiState.selectedView === Sections.Posts ||
|
||||
uiState.selectedView === Sections.PostsWithReplies ||
|
||||
uiState.selectedView === Sections.Trending
|
||||
) {
|
||||
if (uiState.feed.hasContent) {
|
||||
items = uiState.feed.feed.slice()
|
||||
if (uiState.selectedView === Sections.Posts) {
|
||||
items = uiState.feed.nonReplyFeed
|
||||
} else {
|
||||
items = uiState.feed.feed.slice()
|
||||
}
|
||||
if (!uiState.feed.hasMore) {
|
||||
items.push(END_ITEM)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue