Hi and hoping to get some help or advice on best way to achieve the following outcome:
I’ve built a complex chat app which is working great! It allows for users to be matched based on user chosen parameters.
Next, I want to add a “moderator” to each chat meaning a third user is essentially being added to the chat member count.
Two questions I am trying to answer:
Collections/Database: is it best to have a separate Moderator collection that holds moderator profile info (name, profile image, etc) OR do I create the moderator on the User collection and have a User Type field that identifies which users are moderators?
How can I automatically add a moderator at the point when the conversation is being created? I’ve used Adalo’s standard chat template so I still use collections with relationships to users like Conversations, Messages, Read Status, etc. I’ve posted a few screen shots of the actions to start the chat when a user initiates. But I cannot figure a way to automatically add the 3rd member of the chat – the moderator.
I figured out how to add the moderator to the conversation membership by adding another “update conversation” action and adding the new current user. Although I’m unsure why there are 2 current users now and if there is a way to differentiate for the future.
I think I’m off to a good start here. Thanks @dilon_perera
If you add another list that for moderators and make the filter for Logged in user’s > Conversations(Moderator) then the chats that relevant moderator is available will show that relevant conversation(s) to that moderator. You can add this to the members property too and then no need another list. I didn’t added it because I thought you need to see the moderator in another property.
But anyway happy that you solved it like what you needed! ( adding the moderator to the members property )
It’s because the Random Picker and the current list both connected the same users collection and pass current user data. You need to test this a bit by adding one by one to get the correct result. But here you don’t need to do that because you need both to be there and make sure you put both ( 1st one and 2nd one )