Publish sync status update only for non-local syncs
This commit is contained in:
parent
7cb1e96aa2
commit
fa5b806ed5
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ class SyncService {
|
|||
_logger.info("Syncing...");
|
||||
try {
|
||||
await _doSync(isAppInBackground: isAppInBackground);
|
||||
if (_lastSyncStatusEvent != null) {
|
||||
if (_lastSyncStatusEvent != null &&
|
||||
_lastSyncStatusEvent.status != SyncStatus.applying_local_diff) {
|
||||
Bus.instance.fire(SyncStatusUpdate(SyncStatus.completed));
|
||||
}
|
||||
} on WiFiUnavailableError {
|
||||
|
|
Loading…
Add table
Reference in a new issue