Fix finding matrix room that is already joined (#67967)
Fix finding matrix room that is already joined (#67967)

After some debugging, it seems room.canonical_alias contains the
room alias that matches the room_id_or_alias value but is not
contained in room.aliases (which is empty). As a result, the
matrix component thought the room wasn't alread joined, joins
again, and this replaces the previous room which had the listener.
This resulted in the component callback not being called for new
messages in the room.

This fixes #66372
nkgilley/home-assistant,toddeye/home-assistant,w1ll1am23/home-assistant,nkgilley/home-assistant,mezz64/home-assistant,mezz64/home-assistant,w1ll1am23/home-assistant,toddeye/home-assistant