TF-859 Keep local copy in Forwarding

This commit is contained in:
ManhNTX
2022-08-21 10:23:08 +07:00
committed by Dat H. Pham
parent 3c85f1d5ed
commit dc0c3ee445
13 changed files with 228 additions and 32 deletions
@@ -0,0 +1,19 @@
import 'package:equatable/equatable.dart';
import 'package:forward/forward/tmail_forward.dart';
class EditLocalCopyInForwardingRequest with EquatableMixin {
final TMailForward currentForward;
final bool keepLocalCopy;
EditLocalCopyInForwardingRequest({
required this.currentForward,
required this.keepLocalCopy,
});
TMailForward get newTMailForward {
return currentForward.copyWith(localCopy: keepLocalCopy);
}
@override
List<Object?> get props => [currentForward, keepLocalCopy];
}