@@ -14,25 +14,25 @@ type AppSettings struct {
14
14
XiaomiConfig * XiaomiConfigRequest `json:"xiaomi_config,omitempty"`
15
15
HuaweiConfig * HuaweiConfigRequest `json:"huawei_config,omitempty"`
16
16
PushConfig * PushConfigRequest `json:"push_config,omitempty"`
17
- WebhookURL string `json:"webhook_url,omitempty"`
17
+ WebhookURL * string `json:"webhook_url,omitempty"`
18
18
MultiTenantEnabled * bool `json:"multi_tenant_enabled,omitempty"`
19
19
AsyncURLEnrichEnabled * bool `json:"async_url_enrich_enabled,omitempty"`
20
20
AutoTranslationEnabled * bool `json:"auto_translation_enabled,omitempty"`
21
21
Grants map [string ][]string `json:"grants,omitempty"`
22
22
MigratePermissionsToV2 * bool `json:"migrate_permissions_to_v2,omitempty"`
23
- PermissionVersion string `json:"permission_version,omitempty"`
23
+ PermissionVersion * string `json:"permission_version,omitempty"`
24
24
FileUploadConfig * FileUploadConfig `json:"file_upload_config,omitempty"`
25
25
ImageUploadConfig * FileUploadConfig `json:"image_upload_config,omitempty"`
26
26
ImageModerationLabels []string `json:"image_moderation_labels,omitempty"`
27
27
ImageModerationEnabled * bool `json:"image_moderation_enabled,omitempty"`
28
28
RemindersInterval int `json:"reminders_interval,omitempty"`
29
- BeforeMessageSendHookURL string `json:"before_message_send_hook_url,omitempty"`
30
- CustomActionHandlerURL string `json:"custom_action_handler_url,omitempty"`
29
+ BeforeMessageSendHookURL * string `json:"before_message_send_hook_url,omitempty"`
30
+ CustomActionHandlerURL * string `json:"custom_action_handler_url,omitempty"`
31
31
UserSearchDisallowedRoles []string `json:"user_search_disallowed_roles,omitempty"`
32
- EnforceUniqueUsernames string `json:"enforce_unique_usernames,omitempty"`
33
- SqsURL string `json:"sqs_url,omitempty"`
34
- SqsKey string `json:"sqs_key,omitempty"`
35
- SqsSecret string `json:"sqs_secret,omitempty"`
32
+ EnforceUniqueUsernames * string `json:"enforce_unique_usernames,omitempty"`
33
+ SqsURL * string `json:"sqs_url,omitempty"`
34
+ SqsKey * string `json:"sqs_key,omitempty"`
35
+ SqsSecret * string `json:"sqs_secret,omitempty"`
36
36
WebhookEvents []string `json:"webhook_events,omitempty"`
37
37
ChannelHideMembersOnly * bool `json:"channel_hide_members_only,omitempty"`
38
38
}
@@ -58,7 +58,7 @@ func (a *AppSettings) SetFirebaseConfig(c FirebaseConfigRequest) *AppSettings {
58
58
}
59
59
60
60
func (a * AppSettings ) SetWebhookURL (s string ) * AppSettings {
61
- a .WebhookURL = s
61
+ a .WebhookURL = & s
62
62
return a
63
63
}
64
64
0 commit comments