ephemeral events: add support for MSC2409 ephemeral events

Closes #19
This commit is contained in:
Sumner Evans
2022-04-01 16:23:38 -06:00
parent 9594e285c6
commit 317abae2ed
3 changed files with 8 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ type appservice struct {
Database database `yaml:"database"`
EphemeralEvents bool `yaml:"ephemeral_events"`
ASToken string `yaml:"as_token"`
HSToken string `yaml:"hs_token"`
}

View File

@@ -10,6 +10,7 @@ import (
func (cfg *Config) CopyToRegistration(registration *as.Registration) error {
registration.ID = cfg.Appservice.ID
registration.URL = cfg.Appservice.Address
registration.EphemeralEvents = cfg.Appservice.EphemeralEvents
falseVal := false
registration.RateLimited = &falseVal