50 lines
1.9 KiB
Java
50 lines
1.9 KiB
Java
package c.a.y;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.api.channel.ChannelUtils;
|
|
import com.discord.api.voice.state.VoiceState;
|
|
import com.discord.stores.StoreVoiceParticipants;
|
|
import j0.k.b;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
/* compiled from: OverlayMenuBubbleDialog.kt */
|
|
public final class o<T, R> implements b<Map<Long, ? extends StoreVoiceParticipants.VoiceUser>, List<? extends StoreVoiceParticipants.VoiceUser>> {
|
|
public final /* synthetic */ Channel i;
|
|
|
|
public o(Channel channel) {
|
|
this.i = channel;
|
|
}
|
|
|
|
/* 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] */
|
|
/* JADX WARNING: Code restructure failed: missing block: B:12:0x0038, code lost:
|
|
if ((r2 != null ? c.c.a.a0.d.A0(r2) : null) == com.discord.api.voice.state.StageRequestToSpeakState.ON_STAGE) goto L_0x003a;
|
|
*/
|
|
/* JADX WARNING: Removed duplicated region for block: B:19:0x003f A[SYNTHETIC] */
|
|
/* JADX WARNING: Removed duplicated region for block: B:21:0x000f A[SYNTHETIC] */
|
|
@Override // j0.k.b
|
|
public List<? extends StoreVoiceParticipants.VoiceUser> call(Map<Long, ? extends StoreVoiceParticipants.VoiceUser> map) {
|
|
boolean z2;
|
|
Collection<? extends StoreVoiceParticipants.VoiceUser> values = map.values();
|
|
ArrayList arrayList = new ArrayList();
|
|
for (T t : values) {
|
|
T t2 = t;
|
|
if (t2.isConnected()) {
|
|
if (ChannelUtils.z(this.i)) {
|
|
VoiceState voiceState = t2.getVoiceState();
|
|
}
|
|
z2 = true;
|
|
if (!z2) {
|
|
arrayList.add(t);
|
|
}
|
|
}
|
|
z2 = false;
|
|
if (!z2) {
|
|
}
|
|
}
|
|
return arrayList;
|
|
}
|
|
}
|