2021-12-17 21:59:34 +00:00
|
|
|
package b.a.y;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
import com.discord.stores.StoreVoiceParticipants;
|
2021-11-02 06:38:17 +00:00
|
|
|
import j0.k.b;
|
2021-08-10 21:19:22 +00:00
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.Map;
|
2021-07-24 02:37:17 +00:00
|
|
|
/* compiled from: OverlayVoiceBubble.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes2.dex */
|
2021-08-10 21:19:22 +00:00
|
|
|
public final class v<T, R> implements b<Map<Long, ? extends StoreVoiceParticipants.VoiceUser>, StoreVoiceParticipants.VoiceUser> {
|
2021-12-02 18:53:44 +00:00
|
|
|
public static final v j = new v();
|
2021-08-10 21:19:22 +00:00
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // j0.k.b
|
2021-08-10 21:19:22 +00:00
|
|
|
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;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2021-08-10 21:19:22 +00:00
|
|
|
t = it.next();
|
2022-03-07 09:34:54 +00:00
|
|
|
if (((StoreVoiceParticipants.VoiceUser) t).isSpeaking()) {
|
2021-08-10 21:19:22 +00:00
|
|
|
break;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-07 09:34:54 +00:00
|
|
|
return (StoreVoiceParticipants.VoiceUser) t;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|