Skip to content

Commit

Permalink
Merge pull request #748 from matrix-org/hs/as-crypto-support
Browse files Browse the repository at this point in the history
Add SendEphemeral and EnableEncryption to appservice configuration fo…
  • Loading branch information
Half-Shot authored Nov 26, 2024
2 parents 9e9f6d3 + e1b98b6 commit fc63446
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 8 additions & 6 deletions b/blueprints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions internal/docker/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand Down

0 comments on commit fc63446

Please sign in to comment.