From e1b98b67a3ca19551fe8640d10bd3611c0995288 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Tue, 19 Nov 2024 14:48:17 +0000 Subject: [PATCH] Add SendEphemeral and EnableEncryption to appservice configuration for blueprints. --- b/blueprints.go | 14 ++++++++------ internal/docker/builder.go | 3 +++ 2 files changed, 11 insertions(+), 6 deletions(-) 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" +