Unblocked toggleIsTyping and modified createMessage to eliminate a query