undo redundant changes
This commit is contained in:
parent
22a1f5dde6
commit
9778c2f42b
|
@ -16,7 +16,6 @@ class File extends EnteFile {
|
|||
int ownerID;
|
||||
int collectionID;
|
||||
String localID;
|
||||
|
||||
String title;
|
||||
String deviceFolder;
|
||||
int creationTime;
|
||||
|
|
|
@ -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 ||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue