Fix getUser function for room and user