TF-4141 Add the AI needs-action option into the user settings.
This commit is contained in:
@@ -40,10 +40,14 @@ class TMailServerSettingOptions with EquatableMixin {
|
||||
@JsonKey(name: 'language')
|
||||
final String? language;
|
||||
|
||||
@JsonKey(name: 'ai.needs-action.enabled')
|
||||
final bool? aiNeedsActionEnabled;
|
||||
|
||||
TMailServerSettingOptions({
|
||||
this.alwaysReadReceipts,
|
||||
this.displaySenderPriority,
|
||||
this.language,
|
||||
this.aiNeedsActionEnabled,
|
||||
});
|
||||
|
||||
factory TMailServerSettingOptions.fromJson(Map<String, dynamic> json) =>
|
||||
@@ -55,11 +59,13 @@ class TMailServerSettingOptions with EquatableMixin {
|
||||
bool? alwaysReadReceipts,
|
||||
bool? displaySenderPriority,
|
||||
String? language,
|
||||
bool? aiNeedsActionEnabled,
|
||||
}) {
|
||||
return TMailServerSettingOptions(
|
||||
alwaysReadReceipts: alwaysReadReceipts ?? this.alwaysReadReceipts,
|
||||
displaySenderPriority: displaySenderPriority ?? this.displaySenderPriority,
|
||||
language: language ?? this.language,
|
||||
aiNeedsActionEnabled: aiNeedsActionEnabled ?? this.aiNeedsActionEnabled,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -68,5 +74,6 @@ class TMailServerSettingOptions with EquatableMixin {
|
||||
alwaysReadReceipts,
|
||||
displaySenderPriority,
|
||||
language,
|
||||
aiNeedsActionEnabled,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -5,4 +5,6 @@ extension TmailServerSettingsExtension on TMailServerSettingOptions {
|
||||
bool get isDisplaySenderPriority => displaySenderPriority ?? true;
|
||||
|
||||
bool get isAlwaysReadReceipts => alwaysReadReceipts ?? false;
|
||||
|
||||
bool get isAINeedsActionEnabled => aiNeedsActionEnabled ?? false;
|
||||
}
|
||||
Reference in New Issue
Block a user