undo redundant changes
This commit is contained in:
parent
22a1f5dde6
commit
9778c2f42b
|
@ -16,7 +16,6 @@ class File extends EnteFile {
|
||||||
int ownerID;
|
int ownerID;
|
||||||
int collectionID;
|
int collectionID;
|
||||||
String localID;
|
String localID;
|
||||||
|
|
||||||
String title;
|
String title;
|
||||||
String deviceFolder;
|
String deviceFolder;
|
||||||
int creationTime;
|
int creationTime;
|
||||||
|
|
|
@ -11,7 +11,7 @@ class IgnoredFile {
|
||||||
|
|
||||||
IgnoredFile(this.localID, this.title, this.deviceFolder, this.reason);
|
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 == null) return null;
|
||||||
if (trashFile.localID == null ||
|
if (trashFile.localID == null ||
|
||||||
trashFile.localID.isEmpty ||
|
trashFile.localID.isEmpty ||
|
||||||
|
|
|
@ -67,7 +67,7 @@ class TrashSyncService {
|
||||||
Future<void> _updateIgnoredFiles(Diff diff) async {
|
Future<void> _updateIgnoredFiles(Diff diff) async {
|
||||||
final ignoredFiles = <IgnoredFile>[];
|
final ignoredFiles = <IgnoredFile>[];
|
||||||
for (TrashFile t in diff.trashedFiles) {
|
for (TrashFile t in diff.trashedFiles) {
|
||||||
final file = IgnoredFile.fromFile(t);
|
final file = IgnoredFile.fromTrashItem(t);
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
ignoredFiles.add(file);
|
ignoredFiles.add(file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue