2021-08-11 06:37:47 +00:00
|
|
|
package c.a.y;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2021-08-10 21:19:22 +00:00
|
|
|
import com.discord.api.channel.Channel;
|
|
|
|
import com.discord.models.guild.Guild;
|
|
|
|
import com.discord.rtcconnection.RtcConnection;
|
|
|
|
import com.discord.stores.StoreStream;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.discord.views.OverlayMenuView;
|
2021-08-10 21:19:22 +00:00
|
|
|
import com.discord.widgets.voice.model.CallModel;
|
2021-11-02 06:38:17 +00:00
|
|
|
import j0.k.b;
|
|
|
|
import j0.l.e.j;
|
2021-08-10 21:19:22 +00:00
|
|
|
import rx.Observable;
|
|
|
|
import rx.functions.Func4;
|
2021-07-24 02:37:17 +00:00
|
|
|
/* compiled from: OverlayMenuView.kt */
|
2021-08-10 21:19:22 +00:00
|
|
|
public final class r<T, R> implements b<Channel, Observable<? extends OverlayMenuView.a>> {
|
|
|
|
public static final r i = new r();
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* 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] */
|
2021-08-10 21:19:22 +00:00
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
|
|
/* JADX WARNING: Unknown variable types count: 1 */
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // j0.k.b
|
2021-08-10 21:19:22 +00:00
|
|
|
public Observable<? extends OverlayMenuView.a> call(Channel channel) {
|
|
|
|
Channel channel2 = channel;
|
|
|
|
if (channel2 == null) {
|
|
|
|
return new j(null);
|
|
|
|
}
|
|
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
|
|
|
Observable<Long> observePermissionsForChannel = companion.getPermissions().observePermissionsForChannel(channel2.h());
|
|
|
|
Observable<Guild> observeGuild = companion.getGuilds().observeGuild(channel2.f());
|
|
|
|
Observable<CallModel> observable = CallModel.Companion.get(channel2.h());
|
|
|
|
Observable<RtcConnection.Quality> quality = companion.getRtcConnection().getQuality();
|
|
|
|
q qVar = q.i;
|
|
|
|
if (qVar != null) {
|
|
|
|
qVar = new u(qVar);
|
|
|
|
}
|
|
|
|
return Observable.h(observePermissionsForChannel, observeGuild, observable, quality, (Func4) qVar);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|