Skip to content
Discussion options

You must be logged in to vote

Hey @emreond,

The value is still there, it's just not exposed. I'm gonna add it to 5.0.0, though, and make sure the appropriate friendship is returned.
For now, you can do this.

let status: Status = /* assume this is the `Status` you get back from your request */
if let friendship = status.wrapper().friendshipStatus.optional().flatMap(Friendship.init) {
   /* do something with the friendship value */
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@emreond
Comment options

Answer selected by sbertix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants