Skip to content

Commit

Permalink
fix: put invitation_server_name parameter as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathixx committed Jul 16, 2024
1 parent 3553be7 commit 4a60f3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/matrix-client-server/src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"database_vacuum_delay": 3600,
"federated_identity_services": null,
"hashes_rate_limit": 100,
"invitation_server_name": "matrix.to",
"is_federated_identity_service": false,
"key_delay": 3600,
"keys_depth": 5,
Expand Down
2 changes: 1 addition & 1 deletion packages/matrix-identity-server/src/invitation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const StoreInvit = <T extends string = never>(
(obj as storeInvitationArgs).room_name ?? '*****',
(obj as storeInvitationArgs).room_avatar_url ?? '*****',
(obj as storeInvitationArgs).room_type ?? '*****',
idServer.conf.invitation_server_name,
idServer.conf.invitation_server_name ?? 'matrix.to',
(obj as storeInvitationArgs).room_alias
)
})
Expand Down
2 changes: 1 addition & 1 deletion packages/matrix-identity-server/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Config {
database_vacuum_delay: number
federated_identity_services?: string[] | null
hashes_rate_limit?: number
invitation_server_name: string
invitation_server_name?: string
is_federated_identity_service: boolean
key_delay: number
keys_depth: number
Expand Down

0 comments on commit 4a60f3a

Please sign in to comment.