Why is my chat message not displayed right away?