package com.discord.stores; import com.discord.stores.updates.ObservationDeck; import com.discord.stores.updates.ObservationDeckProvider; import d0.z.d.m; import java.util.HashSet; import java.util.List; import java.util.Set; import kotlin.jvm.internal.DefaultConstructorMarker; /* compiled from: StoreV2DispatchHandler.kt */ public final class StoreV2DispatchHandler implements DispatchHandler { private final ObservationDeck observationDeck; private final List storesV2; /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.util.List */ /* JADX WARN: Multi-variable type inference failed */ public StoreV2DispatchHandler(List list, ObservationDeck observationDeck) { m.checkNotNullParameter(list, "storesV2"); m.checkNotNullParameter(observationDeck, "observationDeck"); this.storesV2 = list; this.observationDeck = observationDeck; } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ public /* synthetic */ StoreV2DispatchHandler(List list, ObservationDeck observationDeck, int i, DefaultConstructorMarker defaultConstructorMarker) { this(list, (i & 2) != 0 ? ObservationDeckProvider.get() : observationDeck); } @Override // com.discord.stores.DispatchHandler @StoreThread public void onDispatchEnded() { HashSet hashSet = new HashSet(); for (StoreV2 storeV2 : this.storesV2) { Set updateSources = storeV2.getUpdateSources(); if (!updateSources.isEmpty()) { hashSet.addAll(updateSources); storeV2.snapshotData(); storeV2.onDispatchEnded(); } } if (!hashSet.isEmpty()) { this.observationDeck.notify(hashSet); } } }