I’ve created a Firebase Chat App and after a lot of sweat, tears, and missed sleep I’m nearly ready to release it.
I just have one huge problem left (I managed to solve the rest of them after a LOT of thinking / meditating).
If two users log-in or send a message at the same instant, each user ends up in a unique chatroom instead of being paired with each other, and only one of those messages is stored and updated via the “When Firebase1 Data Changed” block.
I am thinking of using the “append value” and “first removed” blocks.
However, they don’t seem to be working.
Does anyone know of any way to prevent this and ensure two users log in at the same time or both messages are stored and updated between the users?