Only update analytics when there's a change
Only update analytics when there's a change

Also, the arguments are the previous state, not the new state.
matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk