Hello everyone!
This is my first post on the forum…
I have a chat messaging app in development and I want to show if users are online to other users by having a green circle next to the user’s picture.
Does anyone have an idea on how to do this?
Thanks!!!
Devops
2
Hello @Ryansigg and welcome ![:wave: :wave:](https://emoji.discourse-cdn.com/google/wave.png?v=9)
Did you try applying conditional visibly to an element?
Thank you!!
Could you explain a little simpler? Sorry I’m good with computers but new to Adalo
Devops
4
Sure no worries ![:wink: :wink:](https://emoji.discourse-cdn.com/google/wink.png?v=9)
1: First you will add a new Date & Time property to your User collection and call it Last Login.
![1 New property](https://global.discourse-cdn.com/business7/uploads/adalo/original/2X/f/f1360597f45f7361a509fc63dc9f61d88f4788e8.png)
2: Create a new screen and add a custom list and bind it to your User collection. Next add your user profile image, Name, and your green Status Icon.
3: Now we are going to add an action to this screen view and update the Current User.
4: You will update the Last Login property with the Current Time.
5: Next we will set a conditional visibility to your Status Icon.
6: So when a logged in user has visited this screen within the last minute your Status Icon will be set to visible.
7: Result
Hope that helps ![:relaxed: :relaxed:](https://emoji.discourse-cdn.com/google/relaxed.png?v=9)
5 Likes
I marked this as the solution as it was perfectly explained in my opinion ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/google/slight_smile.png?v=9)
2 Likes
Devops thank you so much!!
So detailed and clear, im very grateful.
I will do this after work today. I owe you a beer.
1 Like
system
Closed
7
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.