Implement MSC4367 room directory
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user