Implement MSC4367 room directory

This commit is contained in:
2025-10-15 13:46:00 -04:00
parent 9aa2e062e5
commit f771130a16
4 changed files with 72 additions and 40 deletions

View File

@@ -254,3 +254,19 @@ def room_version_from_id(room_id):
return most_common[0] if most_common else None
return most_common_character(nums)[0]
room_dir = {
"chunk": [{
"avatar_url": f"mxc://{config.server_name}/cat",
"guest_can_join": False,
"join_rule": "public",
"name": "Vona",
"num_joined_members": 1,
"room_id": make_event_id().replace("$", "!"),
"room_type": "m.room",
"topic": "",
"world_readable": False,
"via": [config.server_name]
}],
"total_room_count_estimate": 1
}