Build in a typing indicator
A typing indicator is a visual cue within a chat interface that informs users when someone else in the conversation is currently composing a message. This feature helps prevent situations where people send messages simultaneously, potentially causing confusion or conflicting responses.
You can design typing indicators as a simple text message that reads "User is typing," or make them more dynamic, such as speech bubbles that animate into view when someone starts typing and disappear once they stop.