Skip to content

Commit 9f325cd

Browse files
RikdekkerSebastianKrupinski
authored andcommitted
feat(dav): add a room building name to IRoomMetadata
Room backends can publish a building address but not a building name. Clients that group rooms by building therefore derive one from the address, in practice by taking the segment before the first comma. That only works for backends that put the building name first: a room whose address is "1098 XG, Amsterdam" ends up grouped under a postal code. Add BUILDING_NAME so backends that hold the building name as a separate field can publish it, and clients can stop guessing. The key is optional, and nothing changes for backends that do not provide it. Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Rikdekker <Rikdekker@users.noreply.github.com>
1 parent 04aa4e8 commit 9f325cd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lib/public/Calendar/Room/IRoomMetadata.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ interface IRoomMetadata {
3737
*/
3838
public const CAPACITY = '{http://nextcloud.com/ns}room-seating-capacity';
3939

40+
/**
41+
* The name of the building this room is located in
42+
*
43+
* Clients group rooms by building. Without this key they have to guess a
44+
* building from BUILDING_ADDRESS, which only works for backends that
45+
* happen to put the building name first.
46+
*
47+
* @since 35.0.0
48+
*/
49+
public const BUILDING_NAME = '{http://nextcloud.com/ns}room-building-name';
50+
4051
/**
4152
* The physical address of the building this room is located in
4253
*

0 commit comments

Comments
 (0)