mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-12 23:01:40 +00:00
6353b0b7e4
* 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
20 lines
471 B
Go
20 lines
471 B
Go
package config
|
|
|
|
type MSCs struct {
|
|
Matrix *Global `yaml:"-"`
|
|
|
|
// The MSCs to enable, currently only `msc2836` is supported.
|
|
MSCs []string `yaml:"mscs"`
|
|
|
|
Database DatabaseOptions `yaml:"database"`
|
|
}
|
|
|
|
func (c *MSCs) Defaults() {
|
|
c.Database.Defaults()
|
|
c.Database.ConnectionString = "file:mscs.db"
|
|
}
|
|
|
|
func (c *MSCs) Verify(configErrs *ConfigErrors, isMonolith bool) {
|
|
checkNotEmpty(configErrs, "mscs.database.connection_string", string(c.Database.ConnectionString))
|
|
}
|