Skip to content

Commit

Permalink
Add SendEphemeral and EnableEncryption to appservice configuration fo…
Browse files Browse the repository at this point in the history
…r blueprints.
  • Loading branch information
Half-Shot committed Nov 19, 2024
1 parent 547e656 commit e1b98b6
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 e1b98b6

Please sign in to comment.