diff --git a/b/blueprints.go b/b/blueprints.go index 1c8fc4c7..f7c63076 100644 --- a/b/blueprints.go +++ b/b/blueprints.go @@ -79,12 +79,14 @@ type Room struct { } type ApplicationService struct { - ID string - HSToken string - ASToken string - URL string - SenderLocalpart string - RateLimited bool + ID string + HSToken string + ASToken string + URL string + SenderLocalpart string + RateLimited bool + SendEphemeral bool + EnableEncryption bool } type Event struct { diff --git a/internal/docker/builder.go b/internal/docker/builder.go index 689b6364..4415fbca 100644 --- a/internal/docker/builder.go +++ b/internal/docker/builder.go @@ -423,6 +423,9 @@ func generateASRegistrationYaml(as b.ApplicationService) string { fmt.Sprintf("url: '%s'\\n", as.URL) + fmt.Sprintf("sender_localpart: %s\\n", as.SenderLocalpart) + fmt.Sprintf("rate_limited: %v\\n", as.RateLimited) + + fmt.Sprintf("de.sorunome.msc2409.push_ephemeral: %v\\n", as.SendEphemeral) + + fmt.Sprintf("push_ephemeral: %v\\n", as.SendEphemeral) + + fmt.Sprintf("org.matrix.msc3202: %v\\n", as.EnableEncryption) + "namespaces:\\n" + " users:\\n" + " - exclusive: false\\n" +