Skip to content

Commit

Permalink
Fixed uploading duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Zverik committed May 28, 2023
1 parent 081aca6 commit 2e35dd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ _Unreleased_
to existing notes would be lost though).
* Purge non-modified notes when purging all data.
* Update all secondary tags when changing a type for an amenity.
* Fixed error when after uploading new amenities and editing them, duplicates
might have appeared.
* Fixed long press on the sharing icon at the raw tags panel.
* Snack bar when removing a change does not time out for some reason.
Forcibly closing it when leaving the changes list.
Expand Down
2 changes: 2 additions & 0 deletions lib/providers/uploader.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:every_door/providers/need_update.dart';
import 'package:every_door/providers/notes.dart';
import 'package:every_door/providers/osm_api.dart';
import 'package:every_door/providers/osm_auth.dart';
Expand Down Expand Up @@ -26,6 +27,7 @@ class UploaderProvider {
try {
int dataCount = await _ref.read(osmApiProvider).uploadChanges(true);
int noteCount = await _ref.read(notesProvider).uploadNotes();
_ref.read(needMapUpdateProvider).trigger();
// TODO: separate note count in the message?
AlertController.show(
loc.changesUploadedTitle,
Expand Down

0 comments on commit 2e35dd7

Please sign in to comment.