undo redundant changes

This commit is contained in:
Neeraj Gupta 2022-08-30 10:58:15 +05:30
parent 22a1f5dde6
commit 9778c2f42b
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
3 changed files with 2 additions and 3 deletions

View file

@ -16,7 +16,6 @@ class File extends EnteFile {
int ownerID;
int collectionID;
String localID;
String title;
String deviceFolder;
int creationTime;

View file

@ -11,7 +11,7 @@ class IgnoredFile {
IgnoredFile(this.localID, this.title, this.deviceFolder, this.reason);
factory IgnoredFile.fromFile(TrashFile trashFile) {
factory IgnoredFile.fromTrashItem(TrashFile trashFile) {
if (trashFile == null) return null;
if (trashFile.localID == null ||
trashFile.localID.isEmpty ||

View file

@ -67,7 +67,7 @@ class TrashSyncService {
Future<void> _updateIgnoredFiles(Diff diff) async {
final ignoredFiles = <IgnoredFile>[];
for (TrashFile t in diff.trashedFiles) {
final file = IgnoredFile.fromFile(t);
final file = IgnoredFile.fromTrashItem(t);
if (file != null) {
ignoredFiles.add(file);
}