I want to show the picture of users only if their current status is active on the app. Is there a way to do this ?
You could have it so that every time a user loads a screen, you update a field in their collection (“last seen at”) to the current time. You’d need to implement this on every single screen (and it may slow things down).
You could then show a user’s image conditionally if ‘last seen at’ is less than, say, 5 minutes ago?