Fix double sending of chat messages