Skip to content

Get stories and understand their logic #240

Answered by sbertix
biox86 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @biox86,

yep, you're definitely overcomplicating things 😊
All you need to do is check for available stories with Endpoint.recent.stories and then load them with Endpoint.user(_:).stories one by one, as you actually want to load them, passing the TrayElement identifier as the Endpoint.user(_:).stories argument.

Do not rely on Endpoint.users(_:).stories with all identifiers at once as it only loads media for the first one (just like Endpoint.recent.stories). Again: Endpoint.user(_:).stories one at a time, not Endpoint.users(_:).stories.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@biox86
Comment options

@olegjunios
Comment options

Answer selected by sbertix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants