Add backfill
This commit is contained in:
@@ -484,3 +484,18 @@ async def space_hierachy(roomId):
|
|||||||
async def discover_common_rooms():
|
async def discover_common_rooms():
|
||||||
tags = request.json.get("room_participation_tags", [])
|
tags = request.json.get("room_participation_tags", [])
|
||||||
return jsonify({"recognised_tags": tags})
|
return jsonify({"recognised_tags": tags})
|
||||||
|
|
||||||
|
|
||||||
|
@server.route("/_matrix/federation/v1/backfill/<room>")
|
||||||
|
async def backfill(room):
|
||||||
|
# TODO: burger king foot lettuce
|
||||||
|
|
||||||
|
class bullshit:
|
||||||
|
def get_json():
|
||||||
|
return {}
|
||||||
|
|
||||||
|
return jsonify({
|
||||||
|
"origin": server_name,
|
||||||
|
"origin_server_ts": int(str(time.time() * 1000).split(".")[0]),
|
||||||
|
"pdus": send_join(bullshit, room)["state"]
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user