Publish sync status update only for non-local syncs

This commit is contained in:
Vishnu Mohandas 2021-02-07 01:50:37 +05:30
parent 7cb1e96aa2
commit fa5b806ed5

View file

@ -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 {