Skip to content

While fetching single activity without feed code, I can't reach own reactions and latest reactions. #35

Description

@eyupgoymen

What did you do?

I am trying to retrieve single activity with id but I can't reach latest reactions and own reactions. I ve tried to fetched with channel code but at some point I don't have that information. We should have parameter such as includeReactions for get method over FlatFeed. Here is my code piece to fetch single activity without channel code (there is no parameter to specify if should fetch reactions etc for current get method).

        Client.shared.get(typeOf: T.self, activityIds: [id]) { (result) in
            switch result {
            case .success(let response):
                success(response.results.first)
            case .failure(let error):
                failure?(error)
            }
        }

What did you expect to happen?

Expected to have reactions while fetching single activity without channel code.

What happened instead?

We couldn't access latest & own reactions while fetching single activity.

GetStream Environment

GetStream version: 2.2.3
Xcode version: 12.4
Swift version: 5.0
Platform(s) running GetStream: iOS
macOS version running Xcode: BigSur 11.0.1

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions