44 lines
3.3 KiB
Java
44 lines
3.3 KiB
Java
package com.discord.stores;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.api.voice.state.VoiceState;
|
|
import com.discord.stores.StoreAudioDevices;
|
|
import com.discord.utilities.analytics.AnalyticsTracker;
|
|
import com.discord.widgets.voice.feedback.PendingFeedback;
|
|
import d0.t.h0;
|
|
import d0.z.d.o;
|
|
import java.util.Map;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: StoreAnalytics.kt */
|
|
public final class StoreAnalytics$trackCallReportProblem$1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ PendingFeedback.CallFeedback $pendingCallFeedback;
|
|
public final /* synthetic */ StoreAnalytics this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreAnalytics$trackCallReportProblem$1(StoreAnalytics storeAnalytics, PendingFeedback.CallFeedback callFeedback) {
|
|
super(0);
|
|
this.this$0 = storeAnalytics;
|
|
this.$pendingCallFeedback = callFeedback;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
long id2 = StoreAnalytics.access$getStores$p(this.this$0).getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId();
|
|
Channel findChannelByIdInternal$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(this.$pendingCallFeedback.getChannelId());
|
|
if (findChannelByIdInternal$app_productionBetaRelease != null) {
|
|
StoreMediaSettings mediaSettings$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getMediaSettings$app_productionBetaRelease();
|
|
StoreAudioDevices.OutputDevice selectedOutputDevice = StoreAnalytics.access$getStores$p(this.this$0).getAudioDevices$app_productionBetaRelease().getEnabled() ? StoreAnalytics.access$getStores$p(this.this$0).getAudioDevices$app_productionBetaRelease().getAudioDevicesState$app_productionBetaRelease().getSelectedOutputDevice() : StoreAudioManagerV2.Companion.outputDeviceFromAudioDevice$app_productionBetaRelease(StoreAnalytics.access$getStores$p(this.this$0).getAudioManagerV2$app_productionBetaRelease().getLastActiveAudioDevice$app_productionBetaRelease());
|
|
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
|
|
String rtcConnectionId = this.$pendingCallFeedback.getRtcConnectionId();
|
|
Map<Long, VoiceState> map = (Map) a.c(findChannelByIdInternal$app_productionBetaRelease, StoreAnalytics.access$getStores$p(this.this$0).getVoiceStates$app_productionBetaRelease().get());
|
|
if (map == null) {
|
|
map = h0.emptyMap();
|
|
}
|
|
analyticsTracker.callReportProblem(id2, rtcConnectionId, findChannelByIdInternal$app_productionBetaRelease, map, this.$pendingCallFeedback.getDurationMs(), this.$pendingCallFeedback.getMediaSessionId(), this.$pendingCallFeedback.getFeedbackRating(), this.$pendingCallFeedback.getReasonCode(), this.$pendingCallFeedback.getReasonDescription(), mediaSettings$app_productionBetaRelease.getVoiceConfigurationBlocking(), selectedOutputDevice, mediaSettings$app_productionBetaRelease.getVideoHardwareScalingBlocking(), this.$pendingCallFeedback.getIssueDetails());
|
|
}
|
|
}
|
|
}
|