In your conversations collection create a relationship property between users and the relationship is many to many and you can name it like users who unread.
And then that send button ( Creates the message ) make it a list and then set the maximum number to 1 and then the collection is users and then filter current conversation members and add a custom filter email is not equal to logged in user email and add a update action to the icon ( Not for the list) Update Current conversation > Users who unread >Add current user. Then add a ellipse or image ( The red badge) and fixed type to top and add it on the inbox icon and set the visibility to sometimes visible if the logged in user > Users who unread > Count is greater than 0. Then group the chat inbox icon and the red badge and add the link action.
The red badge you can add it everywhere. I think no need the read status collection.
When you say light up. The icon to be visible or change color? If you are using the icon as part of the app bar I think you are out of lock there. If not you could create a list that has just the icon there. Then setup the source as users and filter it by the current user, maximum one and in the advance section of the list set it up to automatically refresh. Change the icon to a toggle and assign the true/false field. Set the toggle if pressed to a solid color for the icon and if you don’t want to see anything if it is false set an outlined icon and set the background to your current background color so it kind of disappears.
Hey guys, thank you for your replies but I still am not able to solve this.
I think maybe I haven’t explained my app well enough, or maybe I’m just not understanding correctly…so I’ll go into more detail:
My app simply has a messaging feature, it’s not a messaging app. The app has many different screens that offer different features (marketplace, groups, etc.). At all times, however, a user can press their inbox icon and arrive at the inbox, where they can see all their conversations.
I have no problems getting the unread status to show up on the inbox screen, because the data from the conversations are linked to the page. My problem is getting the icon to operate on ALL the other screens, where the conversation data isn’t available.
When I simply copy and paste the icon, it doesn’t work. It doesn’t seem like it’s possible, but I’d be shocked if it wasn’t possible considering how popular a feature like this is.
I hope this is clearer.
I’m trying to add it to the app bar, so I guess I may be out of luck here