TF-3767 Clean up recent searches whenever re-login and exceeds limit
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/user_name.dart';
|
||||
import 'package:tmail_ui_user/features/cleanup/domain/model/cleanup_rule.dart';
|
||||
|
||||
class RecentSearchCleanupRule extends CleanupRule {
|
||||
final int storageLimit;
|
||||
final AccountId accountId;
|
||||
final UserName userName;
|
||||
|
||||
RecentSearchCleanupRule(
|
||||
{this.storageLimit = 10}
|
||||
this.accountId,
|
||||
this.userName,
|
||||
{this.storageLimit = 10}
|
||||
) : super();
|
||||
|
||||
@override
|
||||
List<Object?> get props => [storageLimit];
|
||||
List<Object?> get props => [accountId, userName, storageLimit];
|
||||
}
|
||||
Reference in New Issue
Block a user