There is no built-in way to do such things in Adalo.
You could create a workaround:
add a field to Users collection, call it “Last activity time”
update this field when user does something in the app (for example, enters the chat screen)
Filter the list of users based on the value of this field (smth like if Current User → Last activity time is less then 5 minutes ago).
The downside of this solution is that it’ll cause a load on a DB, especially if there are many users and if your app will try to update last activity time frequently.
Note - I haven’t tried this solution in person, so implementation details might be a bit different, and I can’t guarantee it’ll work 100%