Clean up asserted identity code (#7934)
Clean up asserted identity code (#7934)

* Clean up asserted identity code

Add logging when we received asserted identity events but ignore them,
and just disable the whole code path if it's not enabled in the config.

* Actually, put the check back - better to check anyway

* Update to ? syntax

Co-authored-by: Michael Telatynski <94c9867e567d21b48f1c67ccab9a43d4b4ded84f@gmail.com>

* Put back lost return

Co-authored-by: Michael Telatynski <94c9867e567d21b48f1c67ccab9a43d4b4ded84f@gmail.com>
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