diff options
Diffstat (limited to 'model/license.go')
-rw-r--r-- | model/license.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/model/license.go b/model/license.go index 3e42a2343..a81f882ca 100644 --- a/model/license.go +++ b/model/license.go @@ -55,6 +55,7 @@ type Features struct { ThemeManagement *bool `json:"theme_management"` EmailNotificationContents *bool `json:"email_notification_contents"` DataRetention *bool `json:"data_retention"` + MessageExport *bool `json:"message_export"` // after we enabled more features for webrtc we'll need to control them with this FutureFeatures *bool `json:"future_features"` @@ -76,6 +77,7 @@ func (f *Features) ToMap() map[string]interface{} { "elastic_search": *f.Elasticsearch, "email_notification_contents": *f.EmailNotificationContents, "data_retention": *f.DataRetention, + "message_export": *f.MessageExport, "future": *f.FutureFeatures, } } @@ -152,6 +154,10 @@ func (f *Features) SetDefaults() { if f.DataRetention == nil { f.DataRetention = NewBool(*f.FutureFeatures) } + + if f.MessageExport == nil { + f.MessageExport = NewBool(*f.FutureFeatures) + } } func (l *License) IsExpired() bool { |