discord-jadx/app/src/main/java/com/discord/stores/StoreGatewayConnection$stre...

37 lines
1.8 KiB
Java

package com.discord.stores;
import com.discord.gateway.GatewaySocket;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreGatewayConnection.kt */
public final class StoreGatewayConnection$streamWatch$1 extends o implements Function1<GatewaySocket, Unit> {
public final /* synthetic */ String $streamKey;
public final /* synthetic */ StoreGatewayConnection this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreGatewayConnection$streamWatch$1(StoreGatewayConnection storeGatewayConnection, String str) {
super(1);
this.this$0 = storeGatewayConnection;
this.$streamKey = str;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(GatewaySocket gatewaySocket) {
invoke(gatewaySocket);
return Unit.a;
}
public final void invoke(GatewaySocket gatewaySocket) {
m.checkNotNullParameter(gatewaySocket, "it");
String activeApplicationStreamKeyInternal$app_productionBetaRelease = StoreGatewayConnection.access$getStream$p(this.this$0).getApplicationStreaming$app_productionBetaRelease().getActiveApplicationStreamKeyInternal$app_productionBetaRelease();
if (activeApplicationStreamKeyInternal$app_productionBetaRelease != null && (!m.areEqual(activeApplicationStreamKeyInternal$app_productionBetaRelease, this.$streamKey))) {
this.this$0.streamDelete(activeApplicationStreamKeyInternal$app_productionBetaRelease);
}
gatewaySocket.streamWatch(this.$streamKey);
}
}