Move private function further down

This commit is contained in:
Vishnu 2021-06-14 21:57:50 +05:30
parent f9918c16d3
commit 74ac0326fe

View file

@ -162,13 +162,6 @@ class SyncService {
}, UserCancelledUploadError());
}
Future<void> _doSync() async {
await _localSyncService.sync();
if (_localSyncService.hasCompletedFirstImport()) {
await _remoteSyncService.sync();
}
}
Future<void> deleteFilesOnServer(List<int> fileIDs) async {
return await _dio
.post(Configuration.instance.getHttpEndpoint() + "/files/delete",
@ -182,6 +175,13 @@ class SyncService {
});
}
Future<void> _doSync() async {
await _localSyncService.sync();
if (_localSyncService.hasCompletedFirstImport()) {
await _remoteSyncService.sync();
}
}
void _showStorageLimitExceededNotification() async {
final lastNotificationShownTime =
_prefs.getInt(kLastStorageLimitExceededNotificationPushTime) ?? 0;