Updated emit behavior for chat message