GetStream / stream-feed-flutter

Stream Feed official Flutter SDK. Build your own feed experience using Dart and Flutter.
https://getstream.io
Other
71 stars 71 forks source link

Populate actor while getting feed #204

Open developerpaaji opened 2 years ago

developerpaaji commented 2 years ago

Problem Feed like in almost any social media app shows feed with users who have posted feed. In currenct version when we get feed we get only id we have to get user by our self.

Suggested Solution Can u add request field like populateActors so we will all activities in convinient form

sachaarbonel commented 2 years ago

Hi @developerpaaji, thanks for opening an issue. In the UI kit we are working on, we made this convenient method https://github.com/GetStream/stream-feed-flutter/blob/20efd500402eab7b89e28a6a3c8cde2335f3efa2/packages/stream_feed_flutter_core/lib/src/bloc/feed_bloc.dart#L117-L125

Would this work for you?

rlee1990 commented 2 years ago

@developerpaaji I am getting the actor in my app when I get the feed. When you make an activity are you doing this:

feed.createUserReference(
                                        uid),

for the actor field. This will populate what you set for the user that was created.

developerpaaji commented 2 years ago

Thanks @sachaarbonel @rlee1990 will check into it.