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;
|
2021-11-01 07:19:03 +00:00
|
|
|
import d0.z.d.o;
|
2021-08-18 07:29:27 +00:00
|
|
|
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 */
|
2021-11-01 07:19:03 +00:00
|
|
|
public Unit mo1invoke() {
|
2021-08-18 07:29:27 +00:00
|
|
|
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-11-01 07:19:03 +00:00
|
|
|
} else if (this.this$0.f2157c.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-10-11 07:48:45 +00:00
|
|
|
StringBuilder O = a.O("Participant not found: ");
|
|
|
|
O.append(this.$userId);
|
|
|
|
mediaSinkWantsManager3.a(O.toString());
|
2021-08-18 07:29:27 +00:00
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MediaSinkWantsManager mediaSinkWantsManager4 = this.this$0;
|
2021-11-01 07:19:03 +00:00
|
|
|
ArrayList arrayList2 = new ArrayList(d0.t.o.collectionSizeOrDefault(arrayList, 10));
|
2021-08-18 07:29:27 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|