TF-802 Disable vacation responder in setting
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
import 'package:core/utils/app_logger.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/utc_date.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/vacation/vacation_response.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/presentation/model/vacation/vacation_presentation.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/presentation/model/vacation/vacation_responder_status.dart';
|
||||
@@ -40,4 +41,22 @@ extension VacationResponseExtension on VacationResponse {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
VacationResponse copyWith({
|
||||
bool? isEnabled,
|
||||
UTCDate? fromDate,
|
||||
UTCDate? toDate,
|
||||
String? subject,
|
||||
String? textBody,
|
||||
String? htmlBody
|
||||
}) {
|
||||
return VacationResponse(
|
||||
isEnabled: isEnabled ?? this.isEnabled,
|
||||
fromDate: fromDate ?? this.fromDate,
|
||||
toDate: toDate ?? this.toDate,
|
||||
subject: subject ?? this.subject,
|
||||
textBody: textBody ?? this.textBody,
|
||||
htmlBody: htmlBody ?? this.htmlBody
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user