When the user changes the activeChat state variable I am attempting to set a Firebase real-time database listener on the new chat key. When a new message is entered into th