Fix clearing remote input

Only clears the user's message input upon submitting if they sent the message.