discord-jadx/app/src/main/java/b/a/y/v.java

29 lines
898 B
Java

package b.a.y;
import com.discord.stores.StoreVoiceParticipants;
import j0.k.b;
import java.util.Iterator;
import java.util.Map;
/* compiled from: OverlayVoiceBubble.kt */
/* loaded from: classes2.dex */
public final class v<T, R> implements b<Map<Long, ? extends StoreVoiceParticipants.VoiceUser>, StoreVoiceParticipants.VoiceUser> {
public static final v j = new v();
@Override // j0.k.b
public StoreVoiceParticipants.VoiceUser call(Map<Long, ? extends StoreVoiceParticipants.VoiceUser> map) {
T t;
Iterator<T> it = map.values().iterator();
while (true) {
if (!it.hasNext()) {
t = null;
break;
}
t = it.next();
if (((StoreVoiceParticipants.VoiceUser) t).isSpeaking()) {
break;
}
}
return (StoreVoiceParticipants.VoiceUser) t;
}
}