From d724b6bf75a3b09465fa2fe7b37deea863abf2b5 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 12 Jul 2016 13:44:04 +0100 Subject: [PATCH] Make null m.room.name behaviour explicit PR feedback --- event-schemas/schema/m.room.canonical_alias | 4 ++-- event-schemas/schema/m.room.name | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/event-schemas/schema/m.room.canonical_alias b/event-schemas/schema/m.room.canonical_alias index dbef7400..5e8e0524 100644 --- a/event-schemas/schema/m.room.canonical_alias +++ b/event-schemas/schema/m.room.canonical_alias @@ -6,8 +6,8 @@ description: |- considered the canonical one. This could be for display purposes or as suggestion to users which alias to use to advertise the room. - A room with an ``m.room.canonical_alias`` event with an empty or absent - ``alias`` field should be treated the same as a room with no + A room with an ``m.room.canonical_alias`` event with an absent, null, or + empty ``alias`` field should be treated the same as a room with no ``m.room.canonical_alias`` event. properties: content: diff --git a/event-schemas/schema/m.room.name b/event-schemas/schema/m.room.name index 2b7d700e..3e3d15ac 100644 --- a/event-schemas/schema/m.room.name +++ b/event-schemas/schema/m.room.name @@ -7,8 +7,9 @@ description: |- is a human-friendly string designed to be displayed to the end-user. The room name is not unique, as multiple rooms can have the same room name set. - A room with an ``m.room.name`` event with an absent or empty ``name`` field - should be treated the same as a room with no ``m.room.name`` event. + A room with an ``m.room.name`` event with an absent, null, or empty + ``name`` field should be treated the same as a room with no ``m.room.name`` + event. An event of this type is automatically created when creating a room using ``/createRoom`` with the ``name`` key.