Commit graph

11 commits

Author SHA1 Message Date
Kegan Dougal 095cc3e7bf Handle direction: up 2020-11-25 12:04:23 +00:00
Kegan Dougal e278ce93af under CI: more logging and enable mscs, nil fix 2020-11-24 17:22:36 +00:00
Kegan Dougal 04e879b581 Add auth chain to federated response 2020-11-24 11:56:11 +00:00
Kegan Dougal 711ec94b5f Use the right client/fed struct in the response 2020-11-24 11:18:40 +00:00
Kegan Dougal 0e911a0eea initial cut of federated threading 2020-11-24 11:01:12 +00:00
Kegan Dougal 7bfd7bbeb1 Extract room ID and servers from previous events; refactor a bit 2020-11-23 18:38:52 +00:00
Kegan Dougal d3451b1ab8 auth remote servers 2020-11-23 18:00:53 +00:00
Kegan Dougal dd063a2722 Call MSC2836EventRelationships in reqCtx 2020-11-23 16:59:13 +00:00
Kegan Dougal 3237cad4c2 Add MSC2836EventRelationships to fedsender 2020-11-23 16:46:15 +00:00
Kegan Dougal 27e0493a35 Update GMSL 2020-11-20 16:45:11 +00:00
Kegsay 6353b0b7e4
MSC2836: Threading - part one (#1589)
* Add mscs/hooks package, begin work for msc2836

* Flesh out hooks and add SQL schema

* Begin implementing core msc2836 logic

* Add test harness

* Linting

* Implement visibility checks; stub out APIs for tests

* Flesh out testing

* Flesh out walkThread a bit

* Persist the origin_server_ts as well

* Edges table instead of relationships

* Add nodes table for event metadata

* LEFT JOIN to extract origin_server_ts for children

* Add graph walking structs

* Implement walking algorithm

* Add more graph walking tests

* Add auto_join for local rooms

* Fix create table syntax on postgres

* Add relationship_room_id|servers to the unsigned section of events

* Persist the parent room_id/servers in edge metadata

Other events cannot assert the true room_id/servers for the
parent event, only make claims to them, hence why this is
edge metadata.

* guts to pass through room_id/servers

* Refactor msc2836 to allow handling from federation

* Add JoinedVia to PerformJoin responses

* Fix tests; review comments
2020-11-19 11:34:59 +00:00