2021-08-09 22:50:52 +00:00
|
|
|
package c.a.q;
|
|
|
|
|
2021-08-18 07:29:27 +00:00
|
|
|
import c.d.b.a.a;
|
|
|
|
import com.discord.rtcconnection.MediaSinkWantsManager;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: MediaSinkWantsManager.kt */
|
|
|
|
public final class j extends o implements Function0<Unit> {
|
|
|
|
public final /* synthetic */ Long $userId;
|
|
|
|
public final /* synthetic */ MediaSinkWantsManager this$0;
|
2021-08-09 22:50:52 +00:00
|
|
|
|
2021-08-18 07:29:27 +00:00
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public j(MediaSinkWantsManager mediaSinkWantsManager, Long l) {
|
|
|
|
super(0);
|
|
|
|
this.this$0 = mediaSinkWantsManager;
|
|
|
|
this.$userId = l;
|
2021-08-09 22:50:52 +00:00
|
|
|
}
|
|
|
|
|
2021-08-18 07:29:27 +00:00
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
|
|
|
public Unit mo1invoke() {
|
|
|
|
ArrayList arrayList = new ArrayList();
|
|
|
|
MediaSinkWantsManager mediaSinkWantsManager = this.this$0;
|
|
|
|
Long l = mediaSinkWantsManager.e;
|
|
|
|
if (l != null) {
|
|
|
|
if (l.longValue() != mediaSinkWantsManager.h) {
|
|
|
|
arrayList.add(l);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Long l2 = this.$userId;
|
|
|
|
if (l2 == null) {
|
|
|
|
this.this$0.e = null;
|
2021-10-05 07:27:27 +00:00
|
|
|
} else if (this.this$0.f2156c.contains(l2)) {
|
2021-08-18 07:29:27 +00:00
|
|
|
MediaSinkWantsManager mediaSinkWantsManager2 = this.this$0;
|
|
|
|
Long l3 = this.$userId;
|
|
|
|
mediaSinkWantsManager2.e = l3;
|
|
|
|
arrayList.add(l3);
|
|
|
|
} else {
|
|
|
|
long j = this.this$0.h;
|
|
|
|
Long l4 = this.$userId;
|
|
|
|
if (l4 != null && j == l4.longValue()) {
|
|
|
|
this.this$0.e = this.$userId;
|
|
|
|
} else {
|
|
|
|
MediaSinkWantsManager mediaSinkWantsManager3 = this.this$0;
|
2021-08-31 07:21:49 +00:00
|
|
|
StringBuilder P = a.P("Participant not found: ");
|
|
|
|
P.append(this.$userId);
|
|
|
|
mediaSinkWantsManager3.a(P.toString());
|
2021-08-18 07:29:27 +00:00
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MediaSinkWantsManager mediaSinkWantsManager4 = this.this$0;
|
|
|
|
ArrayList arrayList2 = new ArrayList(d0.t.o.collectionSizeOrDefault(arrayList, 10));
|
|
|
|
Iterator it = arrayList.iterator();
|
|
|
|
while (it.hasNext()) {
|
|
|
|
arrayList2.add(String.valueOf(((Number) it.next()).longValue()));
|
|
|
|
}
|
|
|
|
mediaSinkWantsManager4.d(arrayList2);
|
|
|
|
return Unit.a;
|
2021-08-09 22:50:52 +00:00
|
|
|
}
|
|
|
|
}
|