Alternatively, we could add canonical_alias as a separate field.
This is breaking the names of rooms without a m.room.name in EX. Apparently the rust SDK doesn't use name field.
c.f.
|
room_name: Optional[str] = None |
|
# TODO: Should we also check for `EventTypes.CanonicalAlias` |
|
# (`m.room.canonical_alias`) as a fallback for the room name? see |
|
# https://github.com/matrix-org/matrix-spec-proposals/pull/3575#discussion_r1671260153 |
|
name_event = room_state.get((EventTypes.Name, "")) |
|
if name_event is not None: |
|
room_name = name_event.content.get("name") |