user7684436
user7684436

Reputation: 717

Getstream Bad iOS documentation

Ok, So I'm trying to add in GetStream to an application which will allow users to comment. Firstly struggling to understand the "backwards" grammar of the documentation I'm also struggling to get a method working correctly (This is down to bad documentation) as all I'm trying to do is check if a user is following a specific feed:

userFeed!.following(filter: [FeedId(feedSlug: "element", userId: uuid)], limit: 1) { result in}

The above fails with the following reason:

Cannot convert return expression of type 'Cancellable' to return type 'Bool'

This is a snippet from their own docs:

user1.following(filter: [FeedId(feedSlug: "user", userId: "42"),
                     FeedId(feedSlug: "user", userId: "43")], limit: 2) { result in /* ... */ }

Has anyone worked with GetStream who can help with this?

Thanks

Upvotes: 0

Views: 175

Answers (1)

buh
buh

Reputation: 440

From your logs the issue is more clear. The feed id can't contain more than 1 colon.

Upvotes: 1

Related Questions