Open vinodkumarsagitla opened 4 months ago
If you have cached users you can use the ID of the createdByUserId
to find it in the DB. If not, you need to load the data for the call and extract the createdBy
from there.
Something in the line of this:
val imageNamePair = StreamVideo.instance().call("livestream", "056cb8e9-2863-417e-acd8-8aa5c98c21ed")
.get()
.map {
it.call.createdBy
}.map {
val name = it.name
val image = it.image
Pair(name, image)
}.getOrNull()
Let me know if it works for you or if there is any way we can help you further.
@aleksandar-apostolov Thanks for your suggestions.
But this is not a best solution for me because we have list of calls (for e.g 25 records) ( QueriedCalls(calls=[...], next=null, prev=null)
) then we need to make request multiple times(e.g. 25 times) for get values for each calls in list.
So please can you have any other way to get this data for multiple calls at single request
@aleksandar-apostolov Any update?
Hey @vinodkumarsagitla Sorry for the delay in response, currently I see no other way to do it. We will pick it up as a feature request, but this is low on our priority list.
Will keep you posted.
Regards, Alex
Discussed in https://github.com/GetStream/stream-video-android/discussions/1130