I’ve built a user-to-user direct chat function. I have both a Thread data type and a Message data type. The message data type has a field titled ‘Related Thread’ that has field type as Thread. I have an RG to display the Threads on the left (filtered for current user) and an RG to display the messages on the right that are connected to the related Thread.
I’ve gotten everything to function properly EXCEPT FOR the very 1st time a message is created/sent after a new Thread is created, and I don’t know why. I have to reload the browser (1) for the message to appear in the thread, and (2) in order to display messages in other threads after clicking those RG cells. It’s like it’s getting hung up somewhere and therefore no messages will be displayed in any thread until it’s refreshed.
Can someone please take a look below and let me know if they can understand why this is happened?? Let me know if you need more screenshots:
I did, and I still couldn’t figure out the reason. All of the workflows shown above work properly with every other message that’s sent in a thread, except for the very first one after a new thread is created.
@romanmg I used your Demo video to help get me started on this page and get the structure set up. I realize time didn’t allow for you to discuss this part of the setup in your demo, so my new thread structure may be different from what you had, but would you happen to know what’s causing this?
After this, copy and paste the URL link here. Doing this, we can access your App to analyze. Be aware that nobody will be able to change anything, but everybody will be able to see all your data. So if you have any sensitive information in your database , this may not be a good option.
Ah, ok thanks. Yea there’s some info in there, so I may just have to hold off on that and keep trying to troubleshoot it myself. I did discover another bug this morning related to the same ‘create a thread’ workflow, so they may be related. I’ll have to circle back to this forum thread later, thanks for your help so far!