I have a group that i only want to show up if someone makes a new empty chat and when the chat is filled with text it should be invisible but it keeps visible even when i completed visible on page load off and conditional so it also showed up in the first empty chat. I really need this to get invisible when the chat exists please help
Right now it’s showing if the threads count is greater than zero. Sounds like you need it to show when the thread count is equal to or less than zero
how do i put that in?
Same as you have now but use the ≤ 0 logic element is visible instead. I would also unchecked visible on page load in layout. I would also add another condition, if thread count is > zero element is not visible
i did what you said but now the whole group is invisible everywhere
So in the debugger does it show the thread is empty?
Sorry, in mobile there is no debugger yet I dont think. If the thread count is zero or it is empty it should be showing. Send me a picture of the editor showing the conditions
this is how it looked like without the count: >0 but then it didnt showed up in the first created chat only the second and after
So the thread is not empty then. This is the same issue as the last discussion. It shouldn’t be pointing to a thread, it should be pointing to a chat. Your logic is creating a thread but not a chat yet so the thread is not empty. Your layout should be list of threads, then list of chats within a thread, then the chat page (which is where you are now)
in the last discussion i used a group chat container which solved the whole problem with texting to a thread within a chat maybe this is some kind of same issue
If you’re making a chat then it shouldn’t be looking to a thread.
so what would you suggest?
It should be looking at the chat. So your database should be like this
Thread:
Name (optional)
Icon (optional)
List of chats
User
Chat:
User
List of Messages
Message:
User
Message text
Chat
Thread
IsAI yes or no, this allows you to determine if this is a user or an ai generated message. Default to no
Your threads are a List of chats and your chat is a list of messages
do you have a chat example who already exists how it looks like so i have a better picture in mind what you mean
I don’t have one available at the moment where I’m at. Basically you just got to remember your threads are just a list of chats. And your chats are a list of messages that’s it
so if i put the group it into my chat items/chatmessages it should work?
Depends on your workflow and how you got to this page. If the chat is empty the element should be visible and vice versa
oh yes it is fixed i changed the search for a thread into chatmessage and made another constraint and it works yayy ![]()
i have another question by the way how do i make HTML animation text writer work for my bot chat box i tried everthing but it just wont show up only if i script writing something myself






