98.8 - Beta (98108)

This commit is contained in:
Juby210 2021-10-22 09:30:30 +02:00
parent 5c0861b68f
commit f634a3bb3a
530 changed files with 2472 additions and 2359 deletions

View File

@ -10,8 +10,8 @@ android {
applicationId 'com.discord'
minSdkVersion 21
targetSdkVersion 29
versionCode 98105
versionName "98.5 - Beta"
versionCode 98108
versionName "98.8 - Beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="98105" android:versionName="98.5 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="98108" android:versionName="98.8 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>

View File

@ -255,9 +255,9 @@ public final class a extends AppDialog {
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
Observable<R> E = h().observeViewState().w(d.i).E(e.i);
m.checkNotNullExpressionValue(E, "filter { it is T }.map { it as T }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(E, this, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new f(this), 62, (Object) null);
Observable<R> F = h().observeViewState().x(d.i).F(e.i);
m.checkNotNullExpressionValue(F, "filter { it is T }.map { it as T }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(F, this, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new f(this), 62, (Object) null);
PublishSubject<f.b> publishSubject = h().j;
m.checkNotNullExpressionValue(publishSubject, "eventSubject");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(publishSubject, this, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new g(this), 62, (Object) null);

View File

@ -22,6 +22,6 @@ public final class d<T, R> implements b<Channel, Observable<? extends GuildMembe
@Override // i0.k.b
public Observable<? extends GuildMember> call(Channel channel) {
Channel channel2 = channel;
return channel2 != null ? this.i.observeComputed(channel2.f(), m0.setOf(Long.valueOf(this.j))).E(new c(this, channel2)) : new j(null);
return channel2 != null ? this.i.observeComputed(channel2.f(), m0.setOf(Long.valueOf(this.j))).F(new c(this, channel2)) : new j(null);
}
}

View File

@ -265,7 +265,7 @@ public final class f extends AppViewModel<d> {
StoreChannels channels = companion.getChannels();
Observable<User> observeUser = users.observeUser(j);
Observable<Integer> observe = userRelationships.observe(j);
Observable q = channels.observeChannel(j2).X(new d(guilds, j)).q();
Observable q = channels.observeChannel(j2).Y(new d(guilds, j)).q();
m.checkNotNullExpressionValue(q, "storeChannels\n … .distinctUntilChanged()");
observable2 = Observable.i(observeUser, observe, q, e.a).q();
m.checkNotNullExpressionValue(observable2, "Observable.combineLatest… .distinctUntilChanged()");
@ -276,7 +276,7 @@ public final class f extends AppViewModel<d> {
m.checkNotNullParameter(observable2, "storeObservable");
this.k = j;
this.l = api;
this.j = PublishSubject.j0();
this.j = PublishSubject.k0();
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), f.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(this), 62, (Object) null);
}

View File

@ -207,7 +207,7 @@ public final class k extends AppViewModel<c> {
StorePremiumGuildSubscription premiumGuildSubscriptions = (i2 & 4) != 0 ? StoreStream.Companion.getPremiumGuildSubscriptions() : null;
RestAPI api = (i2 & 8) != 0 ? RestAPI.Companion.getApi() : null;
if ((i2 & 16) != 0) {
observable2 = subscriptions.observeSubscriptions().E(j.i);
observable2 = subscriptions.observeSubscriptions().F(j.i);
m.checkNotNullExpressionValue(observable2, "storeSubscriptions\n …toreState(it)\n }");
} else {
observable2 = null;

View File

@ -215,9 +215,9 @@ public final class a extends AppDialog {
public static final void g(a aVar) {
Objects.requireNonNull(aVar);
Observable<Long> c02 = Observable.c0(300, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(c02, "Observable\n .time…S, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(c02, aVar, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(aVar), 62, (Object) null);
Observable<Long> d02 = Observable.d0(300, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(d02, "Observable\n .time…S, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(d02, aVar, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(aVar), 62, (Object) null);
}
public static final d h(a aVar) {

View File

@ -139,7 +139,7 @@ public final class w extends AppViewModel<d> {
RestAPI api = (i2 & 1) != 0 ? RestAPI.Companion.getApi() : null;
StoreUser users = (i2 & 2) != 0 ? StoreStream.Companion.getUsers() : null;
if ((i2 & 4) != 0) {
observable2 = StoreUser.observeMe$default(users, false, 1, null).E(v.i);
observable2 = StoreUser.observeMe$default(users, false, 1, null).F(v.i);
m.checkNotNullExpressionValue(observable2, "storeUser.observeMe().ma…oreState(user = meUser) }");
} else {
observable2 = null;
@ -149,6 +149,6 @@ public final class w extends AppViewModel<d> {
m.checkNotNullParameter(observable2, "storeObservable");
this.k = api;
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), w.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new u(this), 62, (Object) null);
this.j = PublishSubject.j0();
this.j = PublishSubject.k0();
}
}

View File

@ -16,6 +16,6 @@ public final class a0<T, R> implements Observable.c<T, R> {
@Override // i0.k.b
public Object call(Object obj) {
return ((Observable) obj).X(new z(this));
return ((Observable) obj).Y(new z(this));
}
}

View File

@ -12,6 +12,6 @@ public final class k0<T, R> implements b<Boolean, Observable<? extends RtcConnec
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // i0.k.b
public Observable<? extends RtcConnection.StateChange> call(Boolean bool) {
return StoreStream.Companion.getRtcConnection().getConnectionState().w(j0.i);
return StoreStream.Companion.getRtcConnection().getConnectionState().x(j0.i);
}
}

View File

@ -8,7 +8,7 @@ import rx.subjects.BehaviorSubject;
/* compiled from: AppState.kt */
public final class l {
public static final ArrayList<Object> a = new ArrayList<>(4);
public static final BehaviorSubject<Integer> b = BehaviorSubject.k0(0);
public static final BehaviorSubject<Integer> b = BehaviorSubject.l0(0);
/* renamed from: c reason: collision with root package name */
public static final l f48c = new l();

View File

@ -58,7 +58,7 @@ public final class o {
@Override // i0.k.b
public Object call(Object obj) {
return ((Observable) obj).X(new s(this)).q();
return ((Observable) obj).Y(new s(this)).q();
}
}
@ -78,7 +78,7 @@ public final class o {
@Override // i0.k.b
public Object call(Object obj) {
return ((Observable) obj).X(new t(this));
return ((Observable) obj).Y(new t(this));
}
}

View File

@ -15,6 +15,6 @@ public final class s<T, R> implements b<Map<K, ? extends V>, Observable<? extend
@Override // i0.k.b
public Object call(Object obj) {
Map map = (Map) obj;
return Observable.z(this.i.i).w(new p(map)).f0(q.i, new r(this, map));
return Observable.A(this.i.i).x(new p(map)).g0(q.i, new r(this, map));
}
}

View File

@ -42,7 +42,7 @@ public final class b implements Application.ActivityLifecycleCallbacks {
if (function1 != null) {
function1 = new c(function1);
}
d.f55c = p.V(cVar, (Action1) function1);
d.f55c = p.W(cVar, (Action1) function1);
}
@Override // android.app.Application.ActivityLifecycleCallbacks

View File

@ -15,9 +15,9 @@ public final class d {
public static final d d = new d();
static {
BehaviorSubject k0 = BehaviorSubject.k0(true);
m.checkNotNullExpressionValue(k0, "BehaviorSubject.create(isBackgrounded)");
b = k0;
BehaviorSubject l0 = BehaviorSubject.l0(true);
m.checkNotNullExpressionValue(l0, "BehaviorSubject.create(isBackgrounded)");
b = l0;
}
public final Observable<Boolean> a() {

View File

@ -31,7 +31,7 @@ public final class e<T> implements Action1<k.c> {
if (subscription != null) {
subscription.unsubscribe();
}
appMediaPlayer.b = Observable.D(500, 500, TimeUnit.MILLISECONDS, appMediaPlayer.i).J().H(a.a()).V(new g(appMediaPlayer), new h(appMediaPlayer));
appMediaPlayer.b = Observable.E(500, 500, TimeUnit.MILLISECONDS, appMediaPlayer.i).K().I(a.a()).W(new g(appMediaPlayer), new h(appMediaPlayer));
} else if (i == 4) {
PublishSubject<AppMediaPlayer.Event> publishSubject3 = this.i.a;
publishSubject3.j.onNext(AppMediaPlayer.Event.e.a);

View File

@ -12,9 +12,9 @@ import java.util.List;
import rx.subjects.PublishSubject;
/* compiled from: RxPlayerEventListener.kt */
public final class k implements g1.a {
public final PublishSubject<c> i = PublishSubject.j0();
public final PublishSubject<a> j = PublishSubject.j0();
public final PublishSubject<b> k = PublishSubject.j0();
public final PublishSubject<c> i = PublishSubject.k0();
public final PublishSubject<a> j = PublishSubject.k0();
public final PublishSubject<b> k = PublishSubject.k0();
/* compiled from: RxPlayerEventListener.kt */
public static final class a {

View File

@ -50,7 +50,7 @@ public final class b0 implements MediaEngineConnection.d {
if (subscription != null && !subscription.isUnsubscribed()) {
dVar.a();
}
dVar.b = Observable.C(0, dVar.f230c, TimeUnit.MILLISECONDS).V(new b(dVar), new c(dVar));
dVar.b = Observable.D(0, dVar.f230c, TimeUnit.MILLISECONDS).W(new b(dVar), new c(dVar));
rtcConnection.n = dVar;
rtcConnection.o = false;
}

View File

@ -172,7 +172,7 @@ public final class b extends ScreenCapturerAndroid {
if (subscription != null) {
subscription.unsubscribe();
}
Observable<Long> c02 = Observable.c0(((long) this.p) / 1000000, TimeUnit.MILLISECONDS);
Observable<Long> d02 = Observable.d0(((long) this.p) / 1000000, TimeUnit.MILLISECONDS);
SurfaceTextureHelper surfaceTextureHelper = this.l;
if (surfaceTextureHelper == null) {
m.throwUninitializedPropertyAccessException("surfaceTextureHelper");
@ -182,7 +182,7 @@ public final class b extends ScreenCapturerAndroid {
Looper looper = handler.getLooper();
AtomicReference<i0.j.b.a> atomicReference = i0.j.b.a.a;
Objects.requireNonNull(looper, "looper == null");
this.v = c02.W(new i0.j.b.b(looper)).V(new c(this), d.i);
this.v = d02.X(new i0.j.b.b(looper)).W(new c(this), d.i);
}
}

View File

@ -492,15 +492,15 @@ public final class k implements MediaEngine {
}
p();
if (this.f == null) {
Observable<Unit> v = Observable.v(new IllegalStateException("Failed to initialize native media engine"));
m.checkNotNullExpressionValue(v, "Observable.error(Illegal…ze native media engine\"))");
return v;
Observable<Unit> w2 = Observable.w(new IllegalStateException("Failed to initialize native media engine"));
m.checkNotNullExpressionValue(w2, "Observable.error(Illegal…ze native media engine\"))");
return w2;
}
Observable n = Observable.n(new q(this), Emitter.BackpressureMode.NONE);
m.checkNotNullExpressionValue(n, "Observable.create({ emit…er.BackpressureMode.NONE)");
Observable<Unit> E = n.s(new e(this)).E(f.i);
m.checkNotNullExpressionValue(E, "getSupportedVideoCodecs(…s }\n .map { Unit }");
return E;
Observable<Unit> F = n.t(new e(this)).F(f.i);
m.checkNotNullExpressionValue(F, "getSupportedVideoCodecs(…s }\n .map { Unit }");
return F;
}
@Override // com.discord.rtcconnection.mediaengine.MediaEngine

View File

@ -30,7 +30,7 @@ public final class w extends o implements Function0<Unit> {
rtcConnection.B = Long.valueOf(rtcConnection.V.currentTimeMillis());
RtcConnection rtcConnection2 = this.this$0;
rtcConnection2.D++;
rtcConnection2.E = rtcConnection2.T.a().b0(2, TimeUnit.SECONDS).V(new t(this), new v(this));
rtcConnection2.E = rtcConnection2.T.a().c0(2, TimeUnit.SECONDS).W(new t(this), new v(this));
return Unit.a;
}
}

View File

@ -18,8 +18,8 @@ public final class a<T, R> implements b<Unit, Observable<? extends Point>> {
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // i0.k.b
public Observable<? extends Point> call(Unit unit) {
Observable<R> J = this.i.i.N(50, TimeUnit.MILLISECONDS).E(f.i).J();
m.checkNotNullExpressionValue(J, "frameResolutionSubject\n … .onBackpressureLatest()");
return J;
Observable<R> K = this.i.i.O(50, TimeUnit.MILLISECONDS).F(f.i).K();
m.checkNotNullExpressionValue(K, "frameResolutionSubject\n … .onBackpressureLatest()");
return K;
}
}

View File

@ -4,7 +4,7 @@ import org.webrtc.RendererCommon;
import rx.subjects.BehaviorSubject;
/* compiled from: RxRendererEvents.kt */
public final class e implements RendererCommon.RendererEvents {
public final BehaviorSubject<a> i = BehaviorSubject.j0();
public final BehaviorSubject<a> i = BehaviorSubject.k0();
/* compiled from: RxRendererEvents.kt */
public static final class a {

View File

@ -73,9 +73,9 @@ public abstract class l extends OverlayDialog implements AppComponent {
public l(Context context) {
super(context);
m.checkNotNullParameter(context, "context");
PublishSubject j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.f249w = j0;
PublishSubject k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.f249w = k0;
setOnClickListener(new k(this));
}

View File

@ -28,6 +28,6 @@ public final class p<T, R> implements b<Channel, Observable<? extends List<? ext
StoreVoiceParticipants voiceParticipants = StoreStream.Companion.getVoiceParticipants();
Long l = this.i;
m.checkNotNullExpressionValue(l, "channelId");
return voiceParticipants.get(l.longValue()).E(new o(channel2)).q();
return voiceParticipants.get(l.longValue()).F(new o(channel2)).q();
}
}

View File

@ -50,7 +50,7 @@ public final class w extends OverlayBubbleWrap implements AppComponent {
}
StoreVoiceParticipants voiceParticipants = StoreStream.Companion.getVoiceParticipants();
m.checkNotNullExpressionValue(l2, "channelId");
return voiceParticipants.get(l2.longValue()).E(v.i).q();
return voiceParticipants.get(l2.longValue()).F(v.i).q();
}
}
@ -92,9 +92,9 @@ public final class w extends OverlayBubbleWrap implements AppComponent {
s0 s0Var = new s0(simpleDraweeView, simpleDraweeView);
m.checkNotNullExpressionValue(s0Var, "OverlayVoiceBubbleBindin…rom(context), this, true)");
this.f252x = s0Var;
PublishSubject j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.f253y = j0;
PublishSubject k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.f253y = k0;
}
@Override // com.discord.overlay.views.OverlayBubbleWrap
@ -132,9 +132,9 @@ public final class w extends OverlayBubbleWrap implements AppComponent {
@Override // android.view.View, android.view.ViewGroup
public void onAttachedToWindow() {
super.onAttachedToWindow();
Observable<R> X = StoreStream.Companion.getVoiceChannelSelected().observeSelectedVoiceChannelId().X(a.i);
m.checkNotNullExpressionValue(X, "StoreStream\n .get…d()\n }\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(X), this, null, 2, null), w.class, getContext(), (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(this), 60, (Object) null);
Observable<R> Y = StoreStream.Companion.getVoiceChannelSelected().observeSelectedVoiceChannelId().Y(a.i);
m.checkNotNullExpressionValue(Y, "StoreStream\n .get…d()\n }\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(Y), this, null, 2, null), w.class, getContext(), (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(this), 60, (Object) null);
}
@Override // com.discord.overlay.views.OverlayBubbleWrap, android.view.View

View File

@ -33,7 +33,7 @@ import rx.Observable;
import rx.subjects.BehaviorSubject;
/* compiled from: OverlayVoiceSelectorBubbleDialog.kt */
public final class z extends l implements AppComponent {
public final BehaviorSubject<String> A = BehaviorSubject.k0("");
public final BehaviorSubject<String> A = BehaviorSubject.l0("");
public String B;
/* renamed from: y reason: collision with root package name */
@ -170,9 +170,9 @@ public final class z extends l implements AppComponent {
widgetGlobalSearchAdapter.setRecycler(recyclerView);
MGRecyclerAdapter.Companion.configure(this.f255z);
WidgetGlobalSearchModel.Companion companion = WidgetGlobalSearchModel.Companion;
Observable<String> E = this.A.E(c.i);
m.checkNotNullExpressionValue(E, "filterPublisher.map { \"!$it\" }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui(companion.getForNav(E), this, this.f255z), z.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
Observable<String> F = this.A.F(c.i);
m.checkNotNullExpressionValue(F, "filterPublisher.map { \"!$it\" }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui(companion.getForNav(F), this, this.f255z), z.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
}
@Override // android.view.View, android.view.ViewGroup

View File

@ -29,7 +29,7 @@ public final /* synthetic */ class e implements b {
if (channel == null) {
return new j(null);
}
Observable h = Observable.h(StoreStream.getUsers().observeMe(), StoreStream.getGuilds().observeGuild(j), StoreStream.getPermissions().observePermissionsForChannel(j2), observable.o(300, TimeUnit.MILLISECONDS).X(new g(j, channel)).q(), new j(channel));
Observable h = Observable.h(StoreStream.getUsers().observeMe(), StoreStream.getGuilds().observeGuild(j), StoreStream.getPermissions().observePermissionsForChannel(j2), observable.o(300, TimeUnit.MILLISECONDS).Y(new g(j, channel)).q(), new j(channel));
m.checkNotNullExpressionValue(h, "observable");
return ObservableExtensionsKt.computationBuffered(h).q();
}

View File

@ -25,8 +25,8 @@ public final /* synthetic */ class h implements b {
public final Object call(Object obj) {
List list = this.i;
Map map = this.j;
Observable g02 = Observable.g0(new r(Observable.z(((Map) obj).values()).w(new l(list)).w(new m(map)).w(new k(this.k)).i, new o2(new f(map), 10)));
Observable h02 = Observable.h0(new r(Observable.A(((Map) obj).values()).x(new l(list)).x(new m(map)).x(new k(this.k)).i, new o2(new f(map), 10)));
l lVar = l.INSTANCE;
return (g02 instanceof j ? Observable.g0(new n.b(((j) g02).k, lVar)) : Observable.g0(new n(g02, lVar, i0.l.e.h.i))).E(new d(map)).e0();
return (h02 instanceof j ? Observable.h0(new n.b(((j) h02).k, lVar)) : Observable.h0(new n(h02, lVar, i0.l.e.h.i))).F(new d(map)).f0();
}
}

View File

@ -17,6 +17,6 @@ public final /* synthetic */ class i implements b {
@Override // i0.k.b
public final Object call(Object obj) {
Map map = (Map) obj;
return StoreStream.getUsers().observeUsers(map.keySet()).X(new h(this.i, map, this.j));
return StoreStream.getUsers().observeUsers(map.keySet()).Y(new h(this.i, map, this.j));
}
}

View File

@ -16,6 +16,6 @@ public final /* synthetic */ class q implements b {
@Override // i0.k.b
public final Object call(Object obj) {
Channel channel = (Channel) obj;
return channel == null ? new j(null) : Observable.h(StoreStream.getGuilds().observeGuild(channel.f()), StoreStream.getUsers().observeMe(), StoreStream.getPermissions().observePermissionsForChannel(this.i), StoreStream.getGuilds().observeSortedRoles(channel.f()).X(new s(channel)), new r(channel));
return channel == null ? new j(null) : Observable.h(StoreStream.getGuilds().observeGuild(channel.f()), StoreStream.getUsers().observeMe(), StoreStream.getPermissions().observePermissionsForChannel(this.i), StoreStream.getGuilds().observeSortedRoles(channel.f()).Y(new s(channel)), new r(channel));
}
}

View File

@ -15,6 +15,6 @@ public final /* synthetic */ class s implements b {
@Override // i0.k.b
public final Object call(Object obj) {
return Observable.g0(new q((List) obj)).w(new t(this.i)).E(v.i).e0();
return Observable.h0(new q((List) obj)).x(new t(this.i)).F(v.i).f0();
}
}

View File

@ -58,6 +58,6 @@ public final class l extends o implements Function0<Unit> {
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo17invoke() {
this.this$0.u = Observable.c0(300, TimeUnit.MILLISECONDS).H(i0.j.b.a.a()).U(new a(this));
this.this$0.u = Observable.d0(300, TimeUnit.MILLISECONDS).I(i0.j.b.a.a()).V(new a(this));
}
}

View File

@ -407,9 +407,9 @@ public class AppActivity extends c.a.d.d implements AppComponent {
}
public AppActivity() {
PublishSubject j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.s = j0;
PublishSubject k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.s = k0;
this.u = c0.g.lazy(new e(this));
this.v = m;
int i = AppPermissionsRequests.a;

View File

@ -221,9 +221,9 @@ public abstract class AppBottomSheet extends BottomSheetDialogFragment implement
public AppBottomSheet(boolean z2) {
this.shouldAvoidKeyboard = z2;
PublishSubject j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.unsubscribeSignal = j0;
PublishSubject k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.unsubscribeSignal = k0;
this.peekLayoutListener = new e(this);
this.appLogger$delegate = c0.g.lazy(new b(this));
}

View File

@ -46,16 +46,16 @@ public abstract class AppDialog extends DialogFragment implements AppComponent {
}
public AppDialog() {
PublishSubject j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.unsubscribeSignal = j0;
PublishSubject k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.unsubscribeSignal = k0;
}
public AppDialog(@LayoutRes int i) {
super(i);
PublishSubject j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.unsubscribeSignal = j0;
PublishSubject k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.unsubscribeSignal = k0;
}
public static /* synthetic */ void hideKeyboard$default(AppDialog appDialog, View view, int i, Object obj) {

View File

@ -178,16 +178,16 @@ public abstract class AppFragment extends Fragment implements AppComponent, AppP
}
public AppFragment() {
PublishSubject j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.unsubscribeSignal = j0;
PublishSubject k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.unsubscribeSignal = k0;
}
public AppFragment(@LayoutRes int i) {
super(i);
PublishSubject j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.unsubscribeSignal = j0;
PublishSubject k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.unsubscribeSignal = k0;
}
private final Unit bindToolbar(AppActivity appActivity, View view) {

View File

@ -19,13 +19,13 @@ public abstract class AppViewModel<V> extends ViewModel implements AppComponent
}
public AppViewModel(V v) {
BehaviorSubject<V> j0 = BehaviorSubject.j0();
this.viewStateSubject = j0;
PublishSubject j02 = PublishSubject.j0();
m.checkNotNullExpressionValue(j02, "PublishSubject.create()");
this.unsubscribeSignal = j02;
BehaviorSubject<V> k0 = BehaviorSubject.k0();
this.viewStateSubject = k0;
PublishSubject k02 = PublishSubject.k0();
m.checkNotNullExpressionValue(k02, "PublishSubject.create()");
this.unsubscribeSignal = k02;
if (v != null) {
j0.onNext(v);
k0.onNext(v);
}
}
@ -42,7 +42,7 @@ public abstract class AppViewModel<V> extends ViewModel implements AppComponent
public final V getViewState() {
BehaviorSubject<V> behaviorSubject = this.viewStateSubject;
m.checkNotNullExpressionValue(behaviorSubject, "viewStateSubject");
return behaviorSubject.m0();
return behaviorSubject.n0();
}
public V modifyPendingViewState(V v, V v2) {

View File

@ -204,7 +204,7 @@ public final class DiscordConnectService extends Service {
String authToken$app_productionBetaRelease = companion.getAuthentication().getAuthToken$app_productionBetaRelease();
if (authToken$app_productionBetaRelease == null || t.isBlank(authToken$app_productionBetaRelease)) {
c.a.d.m.g(this, R.string.overlay_mobile_unauthed, 0, null, 12);
observable2 = Observable.v(new IllegalStateException("UNAUTHED"));
observable2 = Observable.w(new IllegalStateException("UNAUTHED"));
m.checkNotNullExpressionValue(observable2, "Observable.error(Illegal…ateException(\"UNAUTHED\"))");
} else {
c.a.d.l0.a aVar = c.a.d.l0.a.E;
@ -221,7 +221,7 @@ public final class DiscordConnectService extends Service {
if (longOrNull != null) {
if (ContextCompat.checkSelfPermission(this, "android.permission.RECORD_AUDIO") != 0) {
c.a.d.m.g(this, R.string.permission_microphone_denied, 0, null, 12);
observable2 = Observable.v(new IllegalStateException("Do not have microphone permissions, go to main app"));
observable2 = Observable.w(new IllegalStateException("Do not have microphone permissions, go to main app"));
m.checkNotNullExpressionValue(observable2, "Observable.error(\n …to main app\")\n )");
} else {
long longValue = longOrNull.longValue();
@ -229,9 +229,9 @@ public final class DiscordConnectService extends Service {
m.checkNotNullExpressionValue(simpleName3, "DiscordConnectService::class.java.simpleName");
Logger.i$default(appLog, simpleName3, "Try joining voice channel", null, 4, null);
companion.getVoiceChannelSelected().selectVoiceChannel(longValue);
Observable w2 = StoreConnectionOpen.observeConnectionOpen$default(companion.getConnectionOpen(), false, 1, null).w(i0.i);
m.checkNotNullExpressionValue(w2, "StoreStream\n .get…()\n .filter { it }");
observable2 = ObservableExtensionsKt.takeSingleUntilTimeout$default(w2, 10000, false, 2, null).X(k0.i);
Observable x2 = StoreConnectionOpen.observeConnectionOpen$default(companion.getConnectionOpen(), false, 1, null).x(i0.i);
m.checkNotNullExpressionValue(x2, "StoreStream\n .get…()\n .filter { it }");
observable2 = ObservableExtensionsKt.takeSingleUntilTimeout$default(x2, 10000, false, 2, null).Y(k0.i);
m.checkNotNullExpressionValue(observable2, "isConnectedObs.switchMap…nnected\n }\n }");
}
} else if (matchEntire != null) {
@ -241,7 +241,7 @@ public final class DiscordConnectService extends Service {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(observable, 10000, false, 2, null), DiscordConnectService.class, (Context) null, (Function1) null, new d(this, i3), new c(this, i3), (Function0) null, b.i, 38, (Object) null);
return 2;
} else {
observable2 = Observable.v(new IllegalArgumentException("Invalid Request: " + data));
observable2 = Observable.w(new IllegalArgumentException("Invalid Request: " + data));
m.checkNotNullExpressionValue(observable2, "Observable.error(Illegal…\"Invalid Request: $uri\"))");
}
}

View File

@ -96,7 +96,7 @@ public final class GatewayDiscovery {
if (subscription != null) {
subscription.unsubscribe();
}
this.gatewayUrlDiscoverySubscription = this.gatewayUrlProvider.H(this.scheduler).V(new GatewayDiscovery$sam$rx_functions_Action1$0(new GatewayDiscovery$discoverGatewayUrl$3(gatewayDiscovery$discoverGatewayUrl$2)), new GatewayDiscovery$sam$rx_functions_Action1$0(new GatewayDiscovery$discoverGatewayUrl$4(gatewayDiscovery$discoverGatewayUrl$1)));
this.gatewayUrlDiscoverySubscription = this.gatewayUrlProvider.I(this.scheduler).W(new GatewayDiscovery$sam$rx_functions_Action1$0(new GatewayDiscovery$discoverGatewayUrl$3(gatewayDiscovery$discoverGatewayUrl$2)), new GatewayDiscovery$sam$rx_functions_Action1$0(new GatewayDiscovery$discoverGatewayUrl$4(gatewayDiscovery$discoverGatewayUrl$1)));
return;
}
Function1<String, Unit> function13 = this.log;

View File

@ -383,14 +383,14 @@ public final class GatewaySocket {
public final void postInterval(Function0<Unit> function0, long j) {
m.checkNotNullParameter(function0, "callback");
cancel();
this.subscription = Observable.D(j, j, TimeUnit.MILLISECONDS, i0.p.a.a()).H(this.scheduler).V(new GatewaySocket$Timer$postInterval$1(function0), GatewaySocket$Timer$postInterval$2.INSTANCE);
this.subscription = Observable.E(j, j, TimeUnit.MILLISECONDS, i0.p.a.a()).I(this.scheduler).W(new GatewaySocket$Timer$postInterval$1(function0), GatewaySocket$Timer$postInterval$2.INSTANCE);
}
@Override // com.discord.utilities.networking.Backoff.Scheduler
public void schedule(Function0<Unit> function0, long j) {
m.checkNotNullParameter(function0, "action");
cancel();
this.subscription = Observable.c0(j, TimeUnit.MILLISECONDS).H(this.scheduler).V(new GatewaySocket$Timer$schedule$1(this, function0), GatewaySocket$Timer$schedule$2.INSTANCE);
this.subscription = Observable.d0(j, TimeUnit.MILLISECONDS).I(this.scheduler).W(new GatewaySocket$Timer$schedule$1(this, function0), GatewaySocket$Timer$schedule$2.INSTANCE);
}
}
@ -464,8 +464,8 @@ public final class GatewaySocket {
RestClient restClient = RestClient.INSTANCE;
restClient.init(restConfig, context);
this.gatewayDiscovery = new GatewayDiscovery(context, scheduler, backoff, new AnonymousClass1(this), restClient.getGateway());
Observable<Boolean> H = networkMonitor.observeIsConnected().H(scheduler);
Observable.g0(new r(H.i, new w1(new v1(AnonymousClass2.INSTANCE)))).V(new AnonymousClass3(this), new AnonymousClass4(this));
Observable<Boolean> I = networkMonitor.observeIsConnected().I(scheduler);
Observable.h0(new r(I.i, new w1(new v1(AnonymousClass2.INSTANCE)))).W(new AnonymousClass3(this), new AnonymousClass4(this));
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
@ -1086,7 +1086,7 @@ public final class GatewaySocket {
}
private final void schedule(Function0<Unit> function0) {
new j(function0).W(this.scheduler).V(GatewaySocket$schedule$1.INSTANCE, GatewaySocket$schedule$2.INSTANCE);
new j(function0).X(this.scheduler).W(GatewaySocket$schedule$1.INSTANCE, GatewaySocket$schedule$2.INSTANCE);
}
private final void send(Outgoing outgoing, boolean z2, Gson gson) {

View File

@ -30,11 +30,11 @@ public final class RestClient {
if (restApi2 == null) {
m.throwUninitializedPropertyAccessException("restApi");
}
Observable<ModelGateway> W = restApi2.getGateway().W(a.c());
m.checkNotNullExpressionValue(W, "restApi\n .getGa…scribeOn(Schedulers.io())");
Observable<String> E = RetryWithDelay.restRetry$default(retryWithDelay, W, 0, null, null, 7, null).E(RestClient$getGateway$1.INSTANCE);
m.checkNotNullExpressionValue(E, "restApi\n .getGa… .map { it.url }");
return E;
Observable<ModelGateway> X = restApi2.getGateway().X(a.c());
m.checkNotNullExpressionValue(X, "restApi\n .getGa…scribeOn(Schedulers.io())");
Observable<String> F = RetryWithDelay.restRetry$default(retryWithDelay, X, 0, null, null, 7, null).F(RestClient$getGateway$1.INSTANCE);
m.checkNotNullExpressionValue(F, "restApi\n .getGa… .map { it.url }");
return F;
}
public final void init(RestConfig restConfig, Context context) {

View File

@ -161,25 +161,25 @@ public final class AppMediaPlayer {
this.h = aVar;
this.i = scheduler;
this.j = logger;
PublishSubject<Event> j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.a = j0;
PublishSubject<Event> k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.a = k0;
CompositeSubscription compositeSubscription = new CompositeSubscription();
this.f2556c = compositeSubscription;
BehaviorSubject<Float> k0 = BehaviorSubject.k0(Float.valueOf(p1Var.B));
m.checkNotNullExpressionValue(k0, "BehaviorSubject.create(exoPlayer.volume)");
this.d = k0;
BehaviorSubject<Float> l0 = BehaviorSubject.l0(Float.valueOf(p1Var.B));
m.checkNotNullExpressionValue(l0, "BehaviorSubject.create(exoPlayer.volume)");
this.d = l0;
PublishSubject<k.c> publishSubject = kVar.i;
m.checkNotNullExpressionValue(publishSubject, "playerStateChangeSubject");
compositeSubscription.a(publishSubject.I().V(new e(this), new f(this)));
compositeSubscription.a(publishSubject.J().W(new e(this), new f(this)));
PublishSubject<k.a> publishSubject2 = kVar.j;
m.checkNotNullExpressionValue(publishSubject2, "isPlayingChangeSubject");
compositeSubscription.a(publishSubject2.J().V(new a(this), new b(this)));
compositeSubscription.a(publishSubject2.K().W(new a(this), new b(this)));
MediaSource mediaSource = this.e;
String str = (mediaSource == null || (str = mediaSource.j) == null) ? "" : str;
PublishSubject<k.b> publishSubject3 = kVar.k;
m.checkNotNullExpressionValue(publishSubject3, "playerErrorSubject");
compositeSubscription.a(publishSubject3.I().V(new c(this, str), new d(this)));
compositeSubscription.a(publishSubject3.J().W(new c(this, str), new d(this)));
}
public static /* synthetic */ void b(AppMediaPlayer appMediaPlayer, MediaSource mediaSource, boolean z2, boolean z3, long j, PlayerView playerView, PlayerControlView playerControlView, int i) {

View File

@ -54,7 +54,7 @@ public final class CountingRequestBody extends RequestBody {
m.checkNotNullParameter(requestBody, "delegate");
this.delegate = requestBody;
this.ignoreWriteToCount = i;
this.bytesWrittenSubject = BehaviorSubject.k0(0L);
this.bytesWrittenSubject = BehaviorSubject.l0(0L);
this.estimatedContentLength = requestBody.contentLength();
}
@ -84,9 +84,9 @@ public final class CountingRequestBody extends RequestBody {
}
public final Observable<Long> getBytesWrittenObservable() {
Observable<Long> J = this.bytesWrittenSubject.q().J();
m.checkNotNullExpressionValue(J, "bytesWrittenSubject.dist…().onBackpressureLatest()");
return J;
Observable<Long> K = this.bytesWrittenSubject.q().K();
m.checkNotNullExpressionValue(K, "bytesWrittenSubject.dist…().onBackpressureLatest()");
return K;
}
public final long getEstimatedContentLength() {

View File

@ -40,9 +40,9 @@ public final class RetryWithDelay$retryWithDelay$1<T, R> implements b<Throwable,
if (i2 < this.$maxHalfLives && i3 > 1) {
this.$currentDelayMillis.element *= (long) 2;
}
return Observable.c0(this.$currentDelayMillis.element, TimeUnit.MILLISECONDS);
return Observable.d0(this.$currentDelayMillis.element, TimeUnit.MILLISECONDS);
}
}
return Observable.v(th);
return Observable.w(th);
}
}

View File

@ -51,24 +51,24 @@ public final class RetryWithDelay {
ref$IntRef2.element = 0;
Ref$LongRef ref$LongRef = new Ref$LongRef();
ref$LongRef.element = j;
Observable<R> y2 = observable.y(new RetryWithDelay$retryWithDelay$1(intValue, ref$IntRef, function1, intValue2, ref$IntRef2, ref$LongRef));
m.checkNotNullExpressionValue(y2, "flatMap {\n if (curr…able.error<Any>(it)\n }");
return y2;
Observable<R> z2 = observable.z(new RetryWithDelay$retryWithDelay$1(intValue, ref$IntRef, function1, intValue2, ref$IntRef2, ref$LongRef));
m.checkNotNullExpressionValue(z2, "flatMap {\n if (curr…able.error<Any>(it)\n }");
return z2;
}
public final <T> Observable<T> restRetry(Observable<T> observable, long j, Integer num, Integer num2) {
m.checkNotNullParameter(observable, "$this$restRetry");
RetryWithDelay$restRetry$1 retryWithDelay$restRetry$1 = RetryWithDelay$restRetry$1.INSTANCE;
Observable<T> M = observable.M(new RetryWithDelay$restRetry$2(j, num, num2));
m.checkNotNullExpressionValue(M, "retryWhen { it.retryWith…ries, ::isNetworkError) }");
return M;
Observable<T> N = observable.N(new RetryWithDelay$restRetry$2(j, num, num2));
m.checkNotNullExpressionValue(N, "retryWhen { it.retryWith…ries, ::isNetworkError) }");
return N;
}
public final <T> Observable<T> restRetry(Observable<T> observable, long j, Integer num, Integer num2, Function1<? super Throwable, Boolean> function1) {
m.checkNotNullParameter(observable, "$this$restRetry");
m.checkNotNullParameter(function1, "predicate");
Observable<T> M = observable.M(new RetryWithDelay$restRetry$3(j, num, num2, function1));
m.checkNotNullExpressionValue(M, "retryWhen { it.retryWith… maxRetries, predicate) }");
return M;
Observable<T> N = observable.N(new RetryWithDelay$restRetry$3(j, num, num2, function1));
m.checkNotNullExpressionValue(N, "retryWhen { it.retryWith… maxRetries, predicate) }");
return N;
}
}

View File

@ -160,7 +160,7 @@ public final class MediaSinkWantsManager implements MediaEngineConnection.d {
this.l = aVar;
new LinkedHashMap();
this.f2569c = new LinkedHashSet();
this.f = BehaviorSubject.k0(g0.mapOf(c0.o.to("any", EncodeQuality.Hundred)));
this.f = BehaviorSubject.l0(g0.mapOf(c0.o.to("any", EncodeQuality.Hundred)));
this.g = h0.emptyMap();
}

View File

@ -546,7 +546,7 @@ public final class RtcConnection implements DebugPrintable, MediaSinkWantsManage
this.p = new Backoff(1000, 10000, 0, false, null, 28, null);
StateChange stateChange = new StateChange(new State.d(false), null);
this.f2574r = stateChange;
this.s = BehaviorSubject.k0(stateChange);
this.s = BehaviorSubject.l0(stateChange);
this.u = new ArrayList();
c.a.q.o0.e eVar = new c.a.q.o0.e(logger, clock);
eVar.f.add(new x(this));
@ -563,11 +563,11 @@ public final class RtcConnection implements DebugPrintable, MediaSinkWantsManage
m.checkNotNull(mediaSinkWantsManager);
Observable<Map<String, EncodeQuality>> q = mediaSinkWantsManager.f.q();
m.checkNotNullExpressionValue(q, "mediaSinkWantsSubject.distinctUntilChanged()");
subscription = Observable.j(q, this.s, z.i).U(new g0(new a0(this)));
subscription = Observable.j(q, this.s, z.i).V(new g0(new a0(this)));
}
this.H = subscription;
r("Created RtcConnection. GuildID: " + l + " ChannelID: " + j2);
networkMonitor.observeIsConnected().R(1).V(new p(this), new q(this));
networkMonitor.observeIsConnected().S(1).W(new p(this), new q(this));
arrayList.add(new r(this));
this.L = new h0(this);
this.M = new b0(this);

View File

@ -588,12 +588,12 @@ public final class DiscordAudioManager {
}
}
this.f2582r = arrayList;
this.s = new SerializedSubject<>(BehaviorSubject.k0(arrayList));
this.s = new SerializedSubject<>(BehaviorSubject.l0(arrayList));
DeviceTypes deviceTypes = DeviceTypes.INVALID;
this.t = deviceTypes;
this.u = new SerializedSubject<>(BehaviorSubject.k0(deviceTypes));
this.u = new SerializedSubject<>(BehaviorSubject.l0(deviceTypes));
this.f2584x = this.e.getStreamMaxVolume(3);
this.f2585y = new SerializedSubject<>(BehaviorSubject.k0(Integer.valueOf(this.f2583w)));
this.f2585y = new SerializedSubject<>(BehaviorSubject.l0(Integer.valueOf(this.f2583w)));
this.f2586z = DeviceTypes.DEFAULT;
}

View File

@ -99,9 +99,9 @@ public final class ScreenshotDetector {
m.checkNotNullParameter(sharedPreferences, "cache");
this.f = logger;
this.g = sharedPreferences;
PublishSubject<Screenshot> j0 = PublishSubject.j0();
m.checkNotNullExpressionValue(j0, "PublishSubject.create()");
this.b = j0;
PublishSubject<Screenshot> k0 = PublishSubject.k0();
m.checkNotNullExpressionValue(k0, "PublishSubject.create()");
this.b = k0;
ContentResolver contentResolver = application.getContentResolver();
m.checkNotNullExpressionValue(contentResolver, "applicationContext.contentResolver");
b bVar = new b(logger, contentResolver, null, new a(this), 4);

View File

@ -174,9 +174,9 @@ public final class ArchivedThreadsStore extends StoreV2 {
try {
return RestAPI.Companion.getApi().getAllPrivateArchivedThreads(j, Companion.access$getLastArchiveTimestamp(ThreadListingType.Companion, list));
} catch (IllegalStateException e) {
Observable<ThreadListing> v = Observable.v(e);
m.checkNotNullExpressionValue(v, "Observable.error(e)");
return v;
Observable<ThreadListing> w2 = Observable.w(e);
m.checkNotNullExpressionValue(w2, "Observable.error(e)");
return w2;
}
}
}
@ -193,9 +193,9 @@ public final class ArchivedThreadsStore extends StoreV2 {
try {
return RestAPI.Companion.getApi().getAllPublicArchivedThreads(j, Companion.access$getLastArchiveTimestamp(ThreadListingType.Companion, list));
} catch (IllegalStateException e) {
Observable<ThreadListing> v = Observable.v(e);
m.checkNotNullExpressionValue(v, "Observable.error(e)");
return v;
Observable<ThreadListing> w2 = Observable.w(e);
m.checkNotNullExpressionValue(w2, "Observable.error(e)");
return w2;
}
}
}

View File

@ -26,6 +26,6 @@ public final class StoreAnalytics$init$3<T, R> implements b<StoreAnalytics.Scree
}
public final Observable<? extends StoreAnalytics.ScreenViewed> call(StoreAnalytics.ScreenViewed screenViewed) {
return m.areEqual(screenViewed.getScreen(), WidgetHome.class) ? Observable.c0(2, TimeUnit.SECONDS).E(new AnonymousClass1(screenViewed)) : new j(screenViewed);
return m.areEqual(screenViewed.getScreen(), WidgetHome.class) ? Observable.d0(2, TimeUnit.SECONDS).F(new AnonymousClass1(screenViewed)) : new j(screenViewed);
}
}

View File

@ -69,7 +69,7 @@ public final class StoreAnalytics extends Store {
private String fingerprint;
private AtomicBoolean hasTrackedAppUiShown = new AtomicBoolean(false);
private String inputMode;
private final PublishSubject<ScreenViewed> screenViewedSubject = PublishSubject.j0();
private final PublishSubject<ScreenViewed> screenViewedSubject = PublishSubject.k0();
private Channel selectedVoiceChannel;
private final StoreStream stores;
@ -651,9 +651,9 @@ public final class StoreAnalytics extends Store {
super.init(context);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(this.stores.getMediaSettings$app_productionBetaRelease().getInputMode()), StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$1(this), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(this.stores.getVoiceChannelSelected$app_productionBetaRelease().observeSelectedChannel()), StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$2(this), 62, (Object) null);
Observable x2 = this.screenViewedSubject.X(StoreAnalytics$init$3.INSTANCE).x();
m.checkNotNullExpressionValue(x2, "screenViewedSubject\n … }\n .first()");
ObservableExtensionsKt.appSubscribe$default(x2, StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$4(this), 62, (Object) null);
Observable y2 = this.screenViewedSubject.Y(StoreAnalytics$init$3.INSTANCE).y();
m.checkNotNullExpressionValue(y2, "screenViewedSubject\n … }\n .first()");
ObservableExtensionsKt.appSubscribe$default(y2, StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$4(this), 62, (Object) null);
}
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0042: APUT

View File

@ -99,9 +99,9 @@ public final class StoreApplicationCommandFrecency extends StoreV2 {
}
public final Observable<List<String>> observeTopCommandIds(Long l) {
Observable<List<String>> S = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreApplicationCommandFrecency$observeTopCommandIds$1(this, l), 14, null).S(getTopCommandIds(l));
m.checkNotNullExpressionValue(S, "observationDeck.connectR…etTopCommandIds(guildId))");
return S;
Observable<List<String>> T = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreApplicationCommandFrecency$observeTopCommandIds$1(this, l), 14, null).T(getTopCommandIds(l));
m.checkNotNullExpressionValue(T, "observationDeck.connectR…etTopCommandIds(guildId))");
return T;
}
public final void onCommandUsed(Long l, String str) {

View File

@ -772,9 +772,9 @@ public final class StoreApplicationCommands extends StoreV2 {
}
public final Observable<Map<String, Map<String, CommandAutocompleteState>>> observeAutocompleteResults() {
Observable<Map<String, Map<String, CommandAutocompleteState>>> S = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{AutocompleteResultsUpdate}, false, null, null, new StoreApplicationCommands$observeAutocompleteResults$1(this), 14, null).S(h0.emptyMap());
m.checkNotNullExpressionValue(S, "observationDeck.connectR… }.startWith(emptyMap())");
return S;
Observable<Map<String, Map<String, CommandAutocompleteState>>> T = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{AutocompleteResultsUpdate}, false, null, null, new StoreApplicationCommands$observeAutocompleteResults$1(this), 14, null).T(h0.emptyMap());
m.checkNotNullExpressionValue(T, "observationDeck.connectR… }.startWith(emptyMap())");
return T;
}
public final Observable<DiscoverCommands> observeDiscoverCommands(long j) {
@ -784,9 +784,9 @@ public final class StoreApplicationCommands extends StoreV2 {
}
public final Observable<List<ApplicationCommand>> observeFrecencyCommands(long j) {
Observable<List<ApplicationCommand>> S = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{FrecencyCommandsUpdate, this.storeExperiments}, false, null, null, new StoreApplicationCommands$observeFrecencyCommands$1(this, j), 14, null).S(n.emptyList());
m.checkNotNullExpressionValue(S, "observationDeck.connectR…st<ApplicationCommand>())");
return S;
Observable<List<ApplicationCommand>> T = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{FrecencyCommandsUpdate, this.storeExperiments}, false, null, null, new StoreApplicationCommands$observeFrecencyCommands$1(this, j), 14, null).T(n.emptyList());
m.checkNotNullExpressionValue(T, "observationDeck.connectR…st<ApplicationCommand>())");
return T;
}
public final Observable<List<Application>> observeGuildApplications(long j) {

View File

@ -212,9 +212,9 @@ public final class StoreApplicationStreamPreviews extends StoreV2 {
if (subscription != null) {
subscription.unsubscribe();
}
Observable<Long> c02 = Observable.c0(l.longValue(), TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(c02, "Observable.timer(retryAf…s, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(c02, StoreApplicationStreamPreviews.class, (Context) null, new StoreApplicationStreamPreviews$handleFetchFailed$1(this, str), (Function1) null, new StoreApplicationStreamPreviews$handleFetchFailed$2(this, str), (Function0) null, new StoreApplicationStreamPreviews$handleFetchFailed$3(this, str), 42, (Object) null);
Observable<Long> d02 = Observable.d0(l.longValue(), TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(d02, "Observable.timer(retryAf…s, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(d02, StoreApplicationStreamPreviews.class, (Context) null, new StoreApplicationStreamPreviews$handleFetchFailed$1(this, str), (Function1) null, new StoreApplicationStreamPreviews$handleFetchFailed$2(this, str), (Function0) null, new StoreApplicationStreamPreviews$handleFetchFailed$3(this, str), 42, (Object) null);
}
this.fetchAttempts.put(str, Integer.valueOf(intValue));
markChanged();

View File

@ -593,11 +593,11 @@ public final class StoreAuditLog extends StoreV2 {
}
public final Observable<AuditLogState> observeAuditLogState(long j) {
Observable s = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreAuditLog$observeAuditLogState$1(this, j), 14, null).q().s(new StoreAuditLog$observeAuditLogState$2(this, j));
m.checkNotNullExpressionValue(s, "observationDeck.connectR…ditLogIfNeeded(guildId) }");
Observable<AuditLogState> E = s.w(ObservableExtensionsKt$filterNull$1.INSTANCE).E(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(E, "filter { it != null }.map { it!! }");
return E;
Observable t = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreAuditLog$observeAuditLogState$1(this, j), 14, null).q().t(new StoreAuditLog$observeAuditLogState$2(this, j));
m.checkNotNullExpressionValue(t, "observationDeck.connectR…ditLogIfNeeded(guildId) }");
Observable<AuditLogState> F = t.x(ObservableExtensionsKt$filterNull$1.INSTANCE).F(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(F, "filter { it != null }.map { it!! }");
return F;
}
public final void setAuditLogFilterActionId(int i) {

View File

@ -22,6 +22,6 @@ public final class StoreAuthentication$getFingerprintSnapshotOrGenerate$1<T, R>
}
public final Observable<? extends String> call(String str) {
return str != null ? new j(str) : ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().postAuthFingerprint(new RestAPIParams.EmptyBody()), false, 1, null).E(AnonymousClass2.INSTANCE);
return str != null ? new j(str) : ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().postAuthFingerprint(new RestAPIParams.EmptyBody()), false, 1, null).F(AnonymousClass2.INSTANCE);
}
}

View File

@ -31,8 +31,8 @@ public final class StoreAuthentication$login$1<T, R> implements b<String, Observ
}
public final TrackNetworkMetadataReceiver invoke(ModelLoginResult modelLoginResult) {
Observable<T> K = ObservableExtensionsKt.takeSingleUntilTimeout$default(StoreStream.Companion.getInviteSettings().getInvite(), 250, false, 2, null).K(StoreAuthentication$login$1$1$invite$1.INSTANCE);
ModelInvite modelInvite = (ModelInvite) new a(K).a(K.x());
Observable<T> L = ObservableExtensionsKt.takeSingleUntilTimeout$default(StoreStream.Companion.getInviteSettings().getInvite(), 250, false, 2, null).L(StoreAuthentication$login$1$1$invite$1.INSTANCE);
ModelInvite modelInvite = (ModelInvite) new a(L).a(L.y());
return new TrackNetworkActionUserLogin(modelInvite != null ? modelInvite.code : null);
}
}

View File

@ -139,8 +139,8 @@ public final class StoreAuthentication$register$1<T, R> implements b<String, Obs
}
Observable j = Observable.j(inviteCode, observeDynamicLinkGuildTemplateCode, (Func2) r2);
m.checkNotNullExpressionValue(j, "Observable.combineLatest…RequestParams\n )");
Observable<R> y2 = ObservableExtensionsKt.takeSingleUntilTimeout$default(j, 500, false, 2, null).y(new AnonymousClass2(this, str));
m.checkNotNullExpressionValue(y2, "Observable.combineLatest… }\n }");
return ObservableExtensionsKt.takeSingleUntilTimeout$default(ObservableExtensionsKt.restSubscribeOn$default(y2, false, 1, null), 0, false, 3, null).s(new AnonymousClass3(this));
Observable<R> z2 = ObservableExtensionsKt.takeSingleUntilTimeout$default(j, 500, false, 2, null).z(new AnonymousClass2(this, str));
m.checkNotNullExpressionValue(z2, "Observable.combineLatest… }\n }");
return ObservableExtensionsKt.takeSingleUntilTimeout$default(ObservableExtensionsKt.restSubscribeOn$default(z2, false, 1, null), 0, false, 3, null).t(new AnonymousClass3(this));
}
}

View File

@ -43,13 +43,13 @@ public final class StoreAuthentication extends Store {
private String authToken;
private final Dispatcher dispatcher;
private String fingerprint;
private final SerializedSubject<String, String> fingerprintSubject = new SerializedSubject<>(BehaviorSubject.j0());
private final SerializedSubject<String, String> fingerprintSubject = new SerializedSubject<>(BehaviorSubject.k0());
private Subscription isConsentRequiredSubscription;
private final SerializedSubject<Uri, Uri> oauthUriSubject;
private String savedLogin;
private final StoreStream storeStream;
private final SerializedSubject<String, String> tokenSubject = new SerializedSubject<>(BehaviorSubject.j0());
private final PublishSubject<Boolean> userInitiatedAuthEventSubject = PublishSubject.j0();
private final SerializedSubject<String, String> tokenSubject = new SerializedSubject<>(BehaviorSubject.k0());
private final PublishSubject<Boolean> userInitiatedAuthEventSubject = PublishSubject.k0();
/* compiled from: StoreAuthentication.kt */
public static final class AuthRequestParams {
@ -169,10 +169,10 @@ public final class StoreAuthentication extends Store {
m.checkNotNullParameter(dispatcher, "dispatcher");
this.storeStream = storeStream;
this.dispatcher = dispatcher;
BehaviorSubject<String> j0 = BehaviorSubject.j0();
m.checkNotNullExpressionValue(j0, "BehaviorSubject.create()");
this.ageGateError = j0;
this.oauthUriSubject = new SerializedSubject<>(BehaviorSubject.k0(Uri.EMPTY));
BehaviorSubject<String> k0 = BehaviorSubject.k0();
m.checkNotNullExpressionValue(k0, "BehaviorSubject.create()");
this.ageGateError = k0;
this.oauthUriSubject = new SerializedSubject<>(BehaviorSubject.l0(Uri.EMPTY));
}
public static final /* synthetic */ void access$dispatchLogin(StoreAuthentication storeAuthentication, ModelLoginResult modelLoginResult) {
@ -208,9 +208,9 @@ public final class StoreAuthentication extends Store {
}
private final Observable<String> getFingerprintSnapshotOrGenerate() {
Observable<String> s = this.fingerprintSubject.Y(1).X(StoreAuthentication$getFingerprintSnapshotOrGenerate$1.INSTANCE).s(new StoreAuthentication$getFingerprintSnapshotOrGenerate$2(this));
m.checkNotNullExpressionValue(s, "fingerprintSubject\n …int(fingerprint, false) }");
return s;
Observable<String> t = this.fingerprintSubject.Z(1).Y(StoreAuthentication$getFingerprintSnapshotOrGenerate$1.INSTANCE).t(new StoreAuthentication$getFingerprintSnapshotOrGenerate$2(this));
m.checkNotNullExpressionValue(t, "fingerprintSubject\n …int(fingerprint, false) }");
return t;
}
public static /* synthetic */ Observable login$default(StoreAuthentication storeAuthentication, String str, String str2, String str3, boolean z2, String str4, int i, Object obj) {
@ -246,9 +246,9 @@ public final class StoreAuthentication extends Store {
public final Observable<ModelLoginResult> authMFA(String str, String str2) {
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_CODE);
m.checkNotNullParameter(str2, "ticket");
Observable<ModelLoginResult> s = ObservableExtensionsKt.restSubscribeOn$default(RestCallStateKt.logNetworkAction(RestAPI.Companion.getApi().postMFACode(new RestAPIParams.MFALogin(str2, str)), StoreAuthentication$authMFA$1.INSTANCE), false, 1, null).s(new StoreAuthentication$authMFA$2(this));
m.checkNotNullExpressionValue(s, "RestAPI\n .api\n …in(loginResult)\n }");
return s;
Observable<ModelLoginResult> t = ObservableExtensionsKt.restSubscribeOn$default(RestCallStateKt.logNetworkAction(RestAPI.Companion.getApi().postMFACode(new RestAPIParams.MFALogin(str2, str)), StoreAuthentication$authMFA$1.INSTANCE), false, 1, null).t(new StoreAuthentication$authMFA$2(this));
m.checkNotNullExpressionValue(t, "RestAPI\n .api\n …in(loginResult)\n }");
return t;
}
public final Observable<Void> authorizeIP(String str) {
@ -294,9 +294,9 @@ public final class StoreAuthentication extends Store {
}
public final Observable<Boolean> getPreLogoutSignal$app_productionBetaRelease() {
Observable<Boolean> w2 = this.userInitiatedAuthEventSubject.w(StoreAuthentication$getPreLogoutSignal$1.INSTANCE);
m.checkNotNullExpressionValue(w2, "userInitiatedAuthEventSu…LoggedIn -> !isLoggedIn }");
return w2;
Observable<Boolean> x2 = this.userInitiatedAuthEventSubject.x(StoreAuthentication$getPreLogoutSignal$1.INSTANCE);
m.checkNotNullExpressionValue(x2, "userInitiatedAuthEventSu…LoggedIn -> !isLoggedIn }");
return x2;
}
public final String getSavedLogin() {
@ -379,32 +379,32 @@ public final class StoreAuthentication extends Store {
m.checkNotNullParameter(str, "login");
m.checkNotNullParameter(str2, "password");
setSavedLogin(str);
Observable<ModelLoginResult> s = getFingerprintSnapshotOrGenerate().y(new StoreAuthentication$login$1(str, str2, str3, z2, str4)).s(new StoreAuthentication$login$2(this));
m.checkNotNullExpressionValue(s, "getFingerprintSnapshotOr…lt)\n }\n }");
return s;
Observable<ModelLoginResult> t = getFingerprintSnapshotOrGenerate().z(new StoreAuthentication$login$1(str, str2, str3, z2, str4)).t(new StoreAuthentication$login$2(this));
m.checkNotNullExpressionValue(t, "getFingerprintSnapshotOr…lt)\n }\n }");
return t;
}
public final void logout() {
PublishSubject<Boolean> publishSubject = this.userInitiatedAuthEventSubject;
publishSubject.j.onNext(Boolean.FALSE);
Observable y2 = ObservableExtensionsKt.restSubscribeOn$default(RestCallStateKt.logNetworkAction(RestAPI.Companion.getApi().logout(new RestAPIParams.UserDevices(StoreStream.Companion.getNotifications().getPushToken())), StoreAuthentication$logout$1.INSTANCE), false, 1, null).y(new StoreAuthentication$logout$2(this));
m.checkNotNullExpressionValue(y2, "RestAPI\n .api\n …intSnapshotOrGenerate() }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(y2, 0, false, 3, null), (Context) null, "logout", (Function1) null, new StoreAuthentication$logout$3(this), new StoreAuthentication$logout$4(this), (Function0) null, (Function0) null, 101, (Object) null);
Observable z2 = ObservableExtensionsKt.restSubscribeOn$default(RestCallStateKt.logNetworkAction(RestAPI.Companion.getApi().logout(new RestAPIParams.UserDevices(StoreStream.Companion.getNotifications().getPushToken())), StoreAuthentication$logout$1.INSTANCE), false, 1, null).z(new StoreAuthentication$logout$2(this));
m.checkNotNullExpressionValue(z2, "RestAPI\n .api\n …intSnapshotOrGenerate() }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(z2, 0, false, 3, null), (Context) null, "logout", (Function1) null, new StoreAuthentication$logout$3(this), new StoreAuthentication$logout$4(this), (Function0) null, (Function0) null, 101, (Object) null);
}
public final Observable<Boolean> observeIsAuthed$app_productionBetaRelease() {
Observable<R> E = getAuthedToken$app_productionBetaRelease().E(StoreAuthentication$observeIsAuthed$1.INSTANCE);
m.checkNotNullExpressionValue(E, "getAuthedToken()\n .… -> authedToken != null }");
return E;
Observable<R> F = getAuthedToken$app_productionBetaRelease().F(StoreAuthentication$observeIsAuthed$1.INSTANCE);
m.checkNotNullExpressionValue(F, "getAuthedToken()\n .… -> authedToken != null }");
return F;
}
public final Observable<RegisterResponse> register(String str, String str2, String str3, String str4, String str5, boolean z2, String str6) {
m.checkNotNullParameter(str, "username");
m.checkNotNullParameter(str4, "password");
setSavedLogin(str2);
Observable<R> y2 = getFingerprintSnapshotOrGenerate().y(new StoreAuthentication$register$1(this, str, str2, str3, str4, str5, z2, str6));
m.checkNotNullExpressionValue(y2, "getFingerprintSnapshotOr… }\n }");
return y2;
Observable<R> z3 = getFingerprintSnapshotOrGenerate().z(new StoreAuthentication$register$1(this, str, str2, str3, str4, str5, z2, str6));
m.checkNotNullExpressionValue(z3, "getFingerprintSnapshotOr… }\n }");
return z3;
}
public final synchronized void requestConsentRequired() {

View File

@ -47,7 +47,7 @@ public final class StoreCalls$call$2 extends o implements Function1<Long, Unit>
}
public final Observable<? extends Boolean> call(Integer num) {
return (num != null && num.intValue() == 1) ? new j(Boolean.TRUE) : ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().call(this.this$0.$channelId), false, 1, null).E(AnonymousClass1.INSTANCE);
return (num != null && num.intValue() == 1) ? new j(Boolean.TRUE) : ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().call(this.this$0.$channelId), false, 1, null).F(AnonymousClass1.INSTANCE);
}
}
@ -134,9 +134,9 @@ public final class StoreCalls$call$2 extends o implements Function1<Long, Unit>
}
public final void invoke(long j) {
Observable<R> y2 = StoreStream.Companion.getUserRelationships().observe(j).y(new AnonymousClass1(this));
m.checkNotNullExpressionValue(y2, "StoreStream\n .g… }\n }");
Observable ui$default = ObservableExtensionsKt.ui$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(y2, 0, false, 3, null), this.$appComponent, null, 2, null);
Observable<R> z2 = StoreStream.Companion.getUserRelationships().observe(j).z(new AnonymousClass1(this));
m.checkNotNullExpressionValue(z2, "StoreStream\n .g… }\n }");
Observable ui$default = ObservableExtensionsKt.ui$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(z2, 0, false, 3, null), this.$appComponent, null, 2, null);
Context context = this.$context;
ObservableExtensionsKt.appSubscribe$default(ui$default, this.this$0.getClass(), context, (Function1) null, new AnonymousClass3(this, j), (Function0) null, (Function0) null, new AnonymousClass2(this), 52, (Object) null);
}

View File

@ -21,7 +21,7 @@ import rx.subjects.SerializedSubject;
/* compiled from: StoreCalls.kt */
public final class StoreCalls {
private final HashMap<Long, ModelCall> calls = new HashMap<>();
private final SerializedSubject<HashMap<Long, ModelCall>, HashMap<Long, ModelCall>> callsSubject = new SerializedSubject<>(BehaviorSubject.j0());
private final SerializedSubject<HashMap<Long, ModelCall>, HashMap<Long, ModelCall>> callsSubject = new SerializedSubject<>(BehaviorSubject.k0());
private boolean connectionReady;
private long selectedChannelId;
private long selectedGuildId;
@ -100,15 +100,15 @@ public final class StoreCalls {
StoreCalls$call$1 storeCalls$call$1 = new StoreCalls$call$1(this, j);
StoreCalls$call$2 storeCalls$call$2 = new StoreCalls$call$2(this, j, appComponent, context, storeCalls$call$1, function0, fragmentManager);
StoreStream.Companion companion = StoreStream.Companion;
Observable Y = Observable.i0(companion.getChannels().observeChannel(j).k(o.c(StoreCalls$call$3.INSTANCE, null, 5000, TimeUnit.MILLISECONDS)), companion.getVoiceStates().observeForPrivateChannels(j), StoreCalls$call$4.INSTANCE).Y(1);
m.checkNotNullExpressionValue(Y, "Observable\n .zip(…tates) }\n .take(1)");
ObservableExtensionsKt.appSubscribe$default(Y, StoreCalls.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreCalls$call$5(storeCalls$call$2, storeCalls$call$1), 62, (Object) null);
Observable Z = Observable.j0(companion.getChannels().observeChannel(j).k(o.c(StoreCalls$call$3.INSTANCE, null, 5000, TimeUnit.MILLISECONDS)), companion.getVoiceStates().observeForPrivateChannels(j), StoreCalls$call$4.INSTANCE).Z(1);
m.checkNotNullExpressionValue(Z, "Observable\n .zip(…tates) }\n .take(1)");
ObservableExtensionsKt.appSubscribe$default(Z, StoreCalls.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreCalls$call$5(storeCalls$call$2, storeCalls$call$1), 62, (Object) null);
}
public final Observable<ModelCall> get(long j) {
Observable<HashMap<Long, ModelCall>> E = this.callsSubject.E(new StoreCalls$get$1(j));
m.checkNotNullExpressionValue(E, "callsSubject\n .…lls -> calls[channelId] }");
Observable<ModelCall> q = ObservableExtensionsKt.computationLatest(E).q();
Observable<HashMap<Long, ModelCall>> F = this.callsSubject.F(new StoreCalls$get$1(j));
m.checkNotNullExpressionValue(F, "callsSubject\n .…lls -> calls[channelId] }");
Observable<ModelCall> q = ObservableExtensionsKt.computationLatest(F).q();
m.checkNotNullExpressionValue(q, "callsSubject\n .… .distinctUntilChanged()");
return q;
}

View File

@ -64,7 +64,7 @@ public final class StoreCallsIncoming extends StoreV2 {
}
public final Observable<Boolean> observeHasIncoming() {
Observable<Boolean> q = observeIncoming().E(StoreCallsIncoming$observeHasIncoming$1.INSTANCE).q();
Observable<Boolean> q = observeIncoming().F(StoreCallsIncoming$observeHasIncoming$1.INSTANCE).q();
m.checkNotNullExpressionValue(q, "observeIncoming()\n … .distinctUntilChanged()");
return q;
}

View File

@ -310,10 +310,10 @@ public final class StoreChannelMembers extends StoreV2 {
this.getGuildMemberCount = function12;
this.getPresence = function13;
this.isUserStreaming = function14;
PublishSubject<Unit> j0 = PublishSubject.j0();
this.markChangedTrigger = j0;
m.checkNotNullExpressionValue(j0, "markChangedTrigger");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.leadingEdgeThrottle(j0, 1, TimeUnit.SECONDS), StoreChannelMembers.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null);
PublishSubject<Unit> k0 = PublishSubject.k0();
this.markChangedTrigger = k0;
m.checkNotNullExpressionValue(k0, "markChangedTrigger");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.leadingEdgeThrottle(k0, 1, TimeUnit.SECONDS), StoreChannelMembers.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null);
}
public static final /* synthetic */ Dispatcher access$getDispatcher$p(StoreChannelMembers storeChannelMembers) {

View File

@ -76,6 +76,6 @@ public final class StoreChannels$observeDefaultChannel$1<T, R> implements b<Map<
}
public final Observable<? extends Channel> call(Map<Long, Long> map) {
return this.this$0.observeChannelsForGuild(this.$guildId, 0).E(new AnonymousClass1(map));
return this.this$0.observeChannelsForGuild(this.$guildId, 0).F(new AnonymousClass1(map));
}
}

View File

@ -645,7 +645,7 @@ public final class StoreChannels extends StoreV2 {
}
public final Observable<List<Channel>> observeChannelCategories(long j) {
Observable<List<Channel>> q = observeChannelsForGuild$default(this, j, null, 2, null).E(StoreChannels$observeChannelCategories$1.INSTANCE).q();
Observable<List<Channel>> q = observeChannelsForGuild$default(this, j, null, 2, null).F(StoreChannels$observeChannelCategories$1.INSTANCE).q();
m.checkNotNullExpressionValue(q, "observeChannelsForGuild(… .distinctUntilChanged()");
return q;
}
@ -655,28 +655,28 @@ public final class StoreChannels extends StoreV2 {
}
public final Observable<Map<Long, Channel>> observeChannelsForGuild(long j, Integer num) {
Observable<Map<Long, Channel>> q = observeGuildAndPrivateChannels().X(new StoreChannels$observeChannelsForGuild$1(j, num)).q();
Observable<Map<Long, Channel>> q = observeGuildAndPrivateChannels().Y(new StoreChannels$observeChannelsForGuild$1(j, num)).q();
m.checkNotNullExpressionValue(q, "observeGuildAndPrivateCh… .distinctUntilChanged()");
return q;
}
public final Observable<List<Channel>> observeDMs() {
Observable<R> E = observePrivateChannels().E(StoreChannels$observeDMs$1.INSTANCE);
m.checkNotNullExpressionValue(E, "observePrivateChannels()…nel -> channel.isDM() } }");
return E;
Observable<R> F = observePrivateChannels().F(StoreChannels$observeDMs$1.INSTANCE);
m.checkNotNullExpressionValue(F, "observePrivateChannels()…nel -> channel.isDM() } }");
return F;
}
public final Observable<Channel> observeDefaultChannel(long j) {
Observable<Channel> q = this.observeChannelPermissionsForGuild.invoke(Long.valueOf(j)).X(new StoreChannels$observeDefaultChannel$1(this, j)).q();
Observable<Channel> q = this.observeChannelPermissionsForGuild.invoke(Long.valueOf(j)).Y(new StoreChannels$observeDefaultChannel$1(this, j)).q();
m.checkNotNullExpressionValue(q, "observeChannelPermission… .distinctUntilChanged()");
return q;
}
public final Observable<List<Channel>> observeDirectShareCandidates(Context context) {
m.checkNotNullParameter(context, "context");
Observable<R> E = observeGuildAndPrivateChannels().w(StoreChannels$observeDirectShareCandidates$1.INSTANCE).E(new StoreChannels$observeDirectShareCandidates$2(context));
m.checkNotNullExpressionValue(E, "observeGuildAndPrivateCh…ity(context))\n }");
return E;
Observable<R> F = observeGuildAndPrivateChannels().x(StoreChannels$observeDirectShareCandidates$1.INSTANCE).F(new StoreChannels$observeDirectShareCandidates$2(context));
m.checkNotNullExpressionValue(F, "observeGuildAndPrivateCh…ity(context))\n }");
return F;
}
public final Observable<Map<Long, Channel>> observeGuildAndPrivateChannels() {
@ -684,7 +684,7 @@ public final class StoreChannels extends StoreV2 {
}
public final Observable<Map<Long, List<Long>>> observeIds(boolean z2) {
Observable<Map<Long, List<Long>>> q = (z2 ? observeAllChannels() : observeGuildAndPrivateChannels()).E(StoreChannels$observeIds$1.INSTANCE).q();
Observable<Map<Long, List<Long>>> q = (z2 ? observeAllChannels() : observeGuildAndPrivateChannels()).F(StoreChannels$observeIds$1.INSTANCE).q();
m.checkNotNullExpressionValue(q, "channelsObservable\n … .distinctUntilChanged()");
return q;
}
@ -707,7 +707,7 @@ public final class StoreChannels extends StoreV2 {
}
public final Observable<Channel> observePrivateChannel(long j) {
Observable<Channel> q = observePrivateChannels().E(new StoreChannels$observePrivateChannel$1(j)).q();
Observable<Channel> q = observePrivateChannels().F(new StoreChannels$observePrivateChannel$1(j)).q();
m.checkNotNullExpressionValue(q, "observePrivateChannels()… .distinctUntilChanged()");
return q;
}

View File

@ -851,9 +851,9 @@ public final class StoreChannelsSelected extends StoreV2 {
}
public final Observable<Boolean> observeInitializedForAuthedUser() {
Observable<R> X = this.storeChannels.observeInitializedForAuthedUser().X(new StoreChannelsSelected$observeInitializedForAuthedUser$1(this));
m.checkNotNullExpressionValue(X, "storeChannels.observeIni… }\n }");
return X;
Observable<R> Y = this.storeChannels.observeInitializedForAuthedUser().Y(new StoreChannelsSelected$observeInitializedForAuthedUser$1(this));
m.checkNotNullExpressionValue(Y, "storeChannels.observeIni… }\n }");
return Y;
}
public final Observable<Long> observePreviousId() {

View File

@ -388,7 +388,7 @@ public final class StoreChat extends StoreV2 {
this.observationDeck = observationDeck;
this.expandedBlockedMessageGroups = new ArrayList();
this.expandedBlockedMessageGroupsSnapshot = n.emptyList();
this.eventSubject = PublishSubject.j0();
this.eventSubject = PublishSubject.k0();
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
@ -461,9 +461,9 @@ public final class StoreChat extends StoreV2 {
}
public final Observable<InteractionState> observeInteractionState() {
Observable E = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreChat$observeInteractionState$1(this), 14, null).w(ObservableExtensionsKt$filterNull$1.INSTANCE).E(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(E, "filter { it != null }.map { it!! }");
Observable<InteractionState> q = E.q();
Observable F = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreChat$observeInteractionState$1(this), 14, null).x(ObservableExtensionsKt$filterNull$1.INSTANCE).F(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(F, "filter { it != null }.map { it!! }");
Observable<InteractionState> q = F.q();
m.checkNotNullExpressionValue(q, "observationDeck.connectR… .distinctUntilChanged()");
return q;
}

View File

@ -15,7 +15,7 @@ import rx.subjects.SerializedSubject;
public final class StoreClientVersion extends Store {
private int clientMinVersion;
private final String clientMinVersionKey = "CLIENT_OUTDATED_KEY";
private final SerializedSubject<Boolean, Boolean> clientOutdatedSubject = new SerializedSubject<>(BehaviorSubject.k0(Boolean.FALSE));
private final SerializedSubject<Boolean, Boolean> clientOutdatedSubject = new SerializedSubject<>(BehaviorSubject.l0(Boolean.FALSE));
private final int clientVersion = BuildConfig.VERSION_CODE;
public static final /* synthetic */ void access$setClientMinVersion(StoreClientVersion storeClientVersion, int i) {
@ -46,8 +46,8 @@ public final class StoreClientVersion extends Store {
int i = getPrefs().getInt(this.clientMinVersionKey, 0);
this.clientMinVersion = i;
setClientMinVersion(i);
Observable<R> y2 = Observable.C(0, 1, TimeUnit.HOURS).y(StoreClientVersion$init$1.INSTANCE);
m.checkNotNullExpressionValue(y2, "Observable\n .inte…ClientVersion()\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(y2), getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreClientVersion$init$2(this), 62, (Object) null);
Observable<R> z2 = Observable.D(0, 1, TimeUnit.HOURS).z(StoreClientVersion$init$1.INSTANCE);
m.checkNotNullExpressionValue(z2, "Observable\n .inte…ClientVersion()\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(z2), getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreClientVersion$init$2(this), 62, (Object) null);
}
}

View File

@ -108,9 +108,9 @@ public final class StoreDirectories extends StoreV2 {
}
public final void fetchDirectoriesForChannel(long j) {
Observable<R> E = this.restApi.getDirectoryEntries(j).E(StoreDirectories$fetchDirectoriesForChannel$1.INSTANCE);
m.checkNotNullExpressionValue(E, "restApi\n .getDire…pproximateMemberCount } }");
RestCallStateKt.executeRequest(E, new StoreDirectories$fetchDirectoriesForChannel$2(this, j));
Observable<R> F = this.restApi.getDirectoryEntries(j).F(StoreDirectories$fetchDirectoriesForChannel$1.INSTANCE);
m.checkNotNullExpressionValue(F, "restApi\n .getDire…pproximateMemberCount } }");
RestCallStateKt.executeRequest(F, new StoreDirectories$fetchDirectoriesForChannel$2(this, j));
}
public final void fetchEntryCountsForChannel(long j) {
@ -136,7 +136,7 @@ public final class StoreDirectories extends StoreV2 {
public void init(Context context) {
m.checkNotNullParameter(context, "context");
super.init(context);
Observable q = ObservableExtensionsKt.computationLatest(ObservableExtensionsKt.leadingEdgeThrottle(this.guildStore.observeGuilds(), 1, TimeUnit.SECONDS)).E(StoreDirectories$init$1.INSTANCE).q();
Observable q = ObservableExtensionsKt.computationLatest(ObservableExtensionsKt.leadingEdgeThrottle(this.guildStore.observeGuilds(), 1, TimeUnit.SECONDS)).F(StoreDirectories$init$1.INSTANCE).q();
m.checkNotNullExpressionValue(q, "guildStore\n .obse… .distinctUntilChanged()");
ObservableExtensionsKt.appSubscribe$default(q, StoreDirectories.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreDirectories$init$2(this), 62, (Object) null);
}

View File

@ -191,9 +191,9 @@ public final class StoreDynamicLink {
private final Observable<Uri> getDynamicLinkObservable(Intent intent) {
Observable n = Observable.n(new StoreDynamicLink$getDynamicLinkObservable$firebaseDynamicLinks$1(intent), Emitter.BackpressureMode.BUFFER);
m.checkNotNullExpressionValue(n, "Observable.create({\n ….BackpressureMode.BUFFER)");
Observable<Uri> K = Observable.G(new j(Uri.EMPTY).p(1000, TimeUnit.MILLISECONDS), n).K(StoreDynamicLink$getDynamicLinkObservable$1.INSTANCE);
m.checkNotNullExpressionValue(K, "Observable\n .merg…ErrorReturn { Uri.EMPTY }");
return K;
Observable<Uri> L = Observable.H(new j(Uri.EMPTY).p(1000, TimeUnit.MILLISECONDS), n).L(StoreDynamicLink$getDynamicLinkObservable$1.INSTANCE);
m.checkNotNullExpressionValue(L, "Observable\n .merg…ErrorReturn { Uri.EMPTY }");
return L;
}
private final void handleDataReceived(DynamicLinkData dynamicLinkData, Context context) {
@ -222,10 +222,10 @@ public final class StoreDynamicLink {
public final void storeLinkIfExists(Intent intent, Context context) {
m.checkNotNullParameter(intent, "intent");
m.checkNotNullParameter(context, "context");
Observable<R> E = getDynamicLinkObservable(intent).E(StoreDynamicLink$storeLinkIfExists$1.INSTANCE);
m.checkNotNullExpressionValue(E, "getDynamicLinkObservable…ode, authToken)\n }");
Observable s = ObservableExtensionsKt.computationBuffered(E).q().s(StoreDynamicLink$storeLinkIfExists$2.INSTANCE);
m.checkNotNullExpressionValue(s, "getDynamicLinkObservable… )\n }\n }");
ObservableExtensionsKt.appSubscribe$default(s, StoreDynamicLink.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreDynamicLink$storeLinkIfExists$3(this, context), 62, (Object) null);
Observable<R> F = getDynamicLinkObservable(intent).F(StoreDynamicLink$storeLinkIfExists$1.INSTANCE);
m.checkNotNullExpressionValue(F, "getDynamicLinkObservable…ode, authToken)\n }");
Observable t = ObservableExtensionsKt.computationBuffered(F).q().t(StoreDynamicLink$storeLinkIfExists$2.INSTANCE);
m.checkNotNullExpressionValue(t, "getDynamicLinkObservable… )\n }\n }");
ObservableExtensionsKt.appSubscribe$default(t, StoreDynamicLink.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreDynamicLink$storeLinkIfExists$3(this, context), 62, (Object) null);
}
}

View File

@ -72,6 +72,6 @@ public final class StoreEmoji$getEmojiSet$4<T, R> implements b<Quad<? extends Bo
}
public final Observable<? extends EmojiSet> call(Quad<Boolean, Boolean, ? extends List<Long>, ? extends Set<? extends StoreMediaFavorites.Favorite>> quad) {
return ObservableExtensionsKt.computationLatest(StoreEmoji.access$getCustomEmojiStore$p(this.this$0).observeAllowedGuildEmoji()).E(new AnonymousClass1(this, (List) quad.component3(), quad.component1(), quad.component2(), (Set) quad.component4()));
return ObservableExtensionsKt.computationLatest(StoreEmoji.access$getCustomEmojiStore$p(this.this$0).observeAllowedGuildEmoji()).F(new AnonymousClass1(this, (List) quad.component3(), quad.component1(), quad.component2(), (Set) quad.component4()));
}
}

View File

@ -461,16 +461,16 @@ public final class StoreEmoji implements Rules.EmojiDataProvider {
if (emojiContext instanceof EmojiContext.Chat) {
EmojiContext.Chat chat = (EmojiContext.Chat) emojiContext;
if (chat.getGuildId() != 0) {
observable = this.permissionsStore.observePermissionsForChannel(chat.getChannelId()).E(StoreEmoji$getEmojiSet$hasExternalEmojiPermissionObservable$1.INSTANCE);
Observable<EmojiSet> X = Observable.h(StoreUser.observeMe$default(this.userStore, false, 1, null).E(StoreEmoji$getEmojiSet$1.INSTANCE), observable, this.sortedGuildsStore.observeOrderedGuilds().E(StoreEmoji$getEmojiSet$2.INSTANCE), this.mediaFavoritesStore.observeFavorites(StoreMediaFavorites.Favorite.Companion.getEmojiTypes()), StoreEmoji$getEmojiSet$3.INSTANCE).q().X(new StoreEmoji$getEmojiSet$4(this, emojiContext, z3, z2));
m.checkNotNullExpressionValue(X, "Observable\n .comb… }\n }");
return X;
observable = this.permissionsStore.observePermissionsForChannel(chat.getChannelId()).F(StoreEmoji$getEmojiSet$hasExternalEmojiPermissionObservable$1.INSTANCE);
Observable<EmojiSet> Y = Observable.h(StoreUser.observeMe$default(this.userStore, false, 1, null).F(StoreEmoji$getEmojiSet$1.INSTANCE), observable, this.sortedGuildsStore.observeOrderedGuilds().F(StoreEmoji$getEmojiSet$2.INSTANCE), this.mediaFavoritesStore.observeFavorites(StoreMediaFavorites.Favorite.Companion.getEmojiTypes()), StoreEmoji$getEmojiSet$3.INSTANCE).q().Y(new StoreEmoji$getEmojiSet$4(this, emojiContext, z3, z2));
m.checkNotNullExpressionValue(Y, "Observable\n .comb… }\n }");
return Y;
}
}
observable = emojiContext instanceof EmojiContext.Guild ? new j(Boolean.FALSE) : new j(Boolean.TRUE);
Observable<EmojiSet> X = Observable.h(StoreUser.observeMe$default(this.userStore, false, 1, null).E(StoreEmoji$getEmojiSet$1.INSTANCE), observable, this.sortedGuildsStore.observeOrderedGuilds().E(StoreEmoji$getEmojiSet$2.INSTANCE), this.mediaFavoritesStore.observeFavorites(StoreMediaFavorites.Favorite.Companion.getEmojiTypes()), StoreEmoji$getEmojiSet$3.INSTANCE).q().X(new StoreEmoji$getEmojiSet$4(this, emojiContext, z3, z2));
m.checkNotNullExpressionValue(X, "Observable\n .comb… }\n }");
return X;
Observable<EmojiSet> Y = Observable.h(StoreUser.observeMe$default(this.userStore, false, 1, null).F(StoreEmoji$getEmojiSet$1.INSTANCE), observable, this.sortedGuildsStore.observeOrderedGuilds().F(StoreEmoji$getEmojiSet$2.INSTANCE), this.mediaFavoritesStore.observeFavorites(StoreMediaFavorites.Favorite.Companion.getEmojiTypes()), StoreEmoji$getEmojiSet$3.INSTANCE).q().Y(new StoreEmoji$getEmojiSet$4(this, emojiContext, z3, z2));
m.checkNotNullExpressionValue(Y, "Observable\n .comb… }\n }");
return Y;
}
/* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: java.util.Map<java.lang.String, ? extends com.discord.models.domain.emoji.ModelEmojiUnicode>, java.util.Map<java.lang.String, com.discord.models.domain.emoji.ModelEmojiUnicode> */

View File

@ -350,9 +350,9 @@ public final class StoreExperiments extends StoreV2 {
setInitialized();
return;
}
Observable b02 = ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().getExperiments(), false, 1, null).b0(2000, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(b02, "RestAPI\n .api\n …0, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(b02, StoreExperiments.class, (Context) null, (Function1) null, new StoreExperiments$tryInitializeExperiments$2(this), (Function0) null, (Function0) null, new StoreExperiments$tryInitializeExperiments$1(this), 54, (Object) null);
Observable c02 = ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().getExperiments(), false, 1, null).c0(2000, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(c02, "RestAPI\n .api\n …0, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(c02, StoreExperiments.class, (Context) null, (Function1) null, new StoreExperiments$tryInitializeExperiments$2(this), (Function0) null, (Function0) null, new StoreExperiments$tryInitializeExperiments$1(this), 54, (Object) null);
}
}

View File

@ -221,13 +221,13 @@ public final class StoreGatewayConnection implements GatewayEventHandler {
Observable<String> authedToken$app_productionBetaRelease = storeStream.getAuthentication$app_productionBetaRelease().getAuthedToken$app_productionBetaRelease();
Observable<Long> observeSelectedVoiceChannelId = storeStream.getVoiceChannelSelected$app_productionBetaRelease().observeSelectedVoiceChannelId();
l lVar = l.f48c;
Observable q = l.b.E(k.i).q();
Observable q = l.b.F(k.i).q();
m.checkNotNullExpressionValue(q, "numGatewayConnectionCons… .distinctUntilChanged()");
Observable g = Observable.g(a, authedToken$app_productionBetaRelease, observeSelectedVoiceChannelId, q, storeStream.getClientDataState$app_productionBetaRelease().observeClientState(), new StoreGatewayConnection$sam$rx_functions_Func5$0(new StoreGatewayConnection$ClientState$Companion$initialize$1(this)));
m.checkNotNullExpressionValue(g, "Observable\n .… ::create\n )");
Observable H = ObservableExtensionsKt.computationLatest(g).H(scheduler);
m.checkNotNullExpressionValue(H, "Observable\n .… .observeOn(scheduler)");
ObservableExtensionsKt.appSubscribe$default(H, (Context) null, "clientState", (Function1) null, function1, (Function1) null, (Function0) null, (Function0) null, 117, (Object) null);
Observable I = ObservableExtensionsKt.computationLatest(g).I(scheduler);
m.checkNotNullExpressionValue(I, "Observable\n .… .observeOn(scheduler)");
ObservableExtensionsKt.appSubscribe$default(I, (Context) null, "clientState", (Function1) null, function1, (Function1) null, (Function0) null, (Function0) null, 117, (Object) null);
}
}
@ -354,81 +354,81 @@ public final class StoreGatewayConnection implements GatewayEventHandler {
BatchManager batchManager = new BatchManager(v0Var, null, 2, null);
this.batches = batchManager;
Boolean bool = Boolean.FALSE;
this.connected = new SerializedSubject<>(BehaviorSubject.k0(bool));
this.connectionReady = new SerializedSubject<>(BehaviorSubject.k0(bool));
this.callCreateOrUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.callDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.channelCreateOrUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.channelDeleted = new SerializedSubject<>(BehaviorSubject.j0());
this.channelRecipientAdd = new SerializedSubject<>(BehaviorSubject.j0());
this.channelRecipientRemove = new SerializedSubject<>(BehaviorSubject.j0());
this.channelUnreadUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildApplicationCommands = new SerializedSubject<>(BehaviorSubject.j0());
this.guildBanAdd = new SerializedSubject<>(PublishSubject.j0());
this.guildBanRemove = new SerializedSubject<>(PublishSubject.j0());
this.guildCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildEmojisUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildStickersUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildDeleted = new SerializedSubject<>(BehaviorSubject.j0());
this.guildMembersAdd = new SerializedSubject<>(BehaviorSubject.j0());
this.guildMembersChunk = new SerializedSubject<>(BehaviorSubject.j0());
this.guildMemberRemove = new SerializedSubject<>(BehaviorSubject.j0());
this.guildJoinRequestCreateOrUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildRoleCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildRoleUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildRoleDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.guildIntegrationsUpdate = new SerializedSubject<>(PublishSubject.j0());
this.messageAck = new SerializedSubject<>(BehaviorSubject.j0());
this.messageCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.messageDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.messageUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.messageReactionAdd = new SerializedSubject<>(BehaviorSubject.j0());
this.messageReactionRemove = new SerializedSubject<>(BehaviorSubject.j0());
this.messageReactionRemoveEmoji = new SerializedSubject<>(BehaviorSubject.j0());
this.messageReactionRemoveAll = new SerializedSubject<>(BehaviorSubject.j0());
this.presenceUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.presenceReplace = new SerializedSubject<>(BehaviorSubject.j0());
this.ready = new SerializedSubject<>(BehaviorSubject.j0());
this.relationshipAdd = new SerializedSubject<>(BehaviorSubject.j0());
this.relationshipRemove = new SerializedSubject<>(BehaviorSubject.j0());
this.typingStart = new SerializedSubject<>(BehaviorSubject.j0());
this.userConnectionUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.userUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.userSettingsUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.userGuildSettingsUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.userNoteUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.userRequiredActionUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.sessionsReplace = new SerializedSubject<>(BehaviorSubject.j0());
this.connected = new SerializedSubject<>(BehaviorSubject.l0(bool));
this.connectionReady = new SerializedSubject<>(BehaviorSubject.l0(bool));
this.callCreateOrUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.callDelete = new SerializedSubject<>(BehaviorSubject.k0());
this.channelCreateOrUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.channelDeleted = new SerializedSubject<>(BehaviorSubject.k0());
this.channelRecipientAdd = new SerializedSubject<>(BehaviorSubject.k0());
this.channelRecipientRemove = new SerializedSubject<>(BehaviorSubject.k0());
this.channelUnreadUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildApplicationCommands = new SerializedSubject<>(BehaviorSubject.k0());
this.guildBanAdd = new SerializedSubject<>(PublishSubject.k0());
this.guildBanRemove = new SerializedSubject<>(PublishSubject.k0());
this.guildCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildEmojisUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildStickersUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildDeleted = new SerializedSubject<>(BehaviorSubject.k0());
this.guildMembersAdd = new SerializedSubject<>(BehaviorSubject.k0());
this.guildMembersChunk = new SerializedSubject<>(BehaviorSubject.k0());
this.guildMemberRemove = new SerializedSubject<>(BehaviorSubject.k0());
this.guildJoinRequestCreateOrUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildRoleCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildRoleUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildRoleDelete = new SerializedSubject<>(BehaviorSubject.k0());
this.guildIntegrationsUpdate = new SerializedSubject<>(PublishSubject.k0());
this.messageAck = new SerializedSubject<>(BehaviorSubject.k0());
this.messageCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.messageDelete = new SerializedSubject<>(BehaviorSubject.k0());
this.messageUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.messageReactionAdd = new SerializedSubject<>(BehaviorSubject.k0());
this.messageReactionRemove = new SerializedSubject<>(BehaviorSubject.k0());
this.messageReactionRemoveEmoji = new SerializedSubject<>(BehaviorSubject.k0());
this.messageReactionRemoveAll = new SerializedSubject<>(BehaviorSubject.k0());
this.presenceUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.presenceReplace = new SerializedSubject<>(BehaviorSubject.k0());
this.ready = new SerializedSubject<>(BehaviorSubject.k0());
this.relationshipAdd = new SerializedSubject<>(BehaviorSubject.k0());
this.relationshipRemove = new SerializedSubject<>(BehaviorSubject.k0());
this.typingStart = new SerializedSubject<>(BehaviorSubject.k0());
this.userConnectionUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.userUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.userSettingsUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.userGuildSettingsUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.userNoteUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.userRequiredActionUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.sessionsReplace = new SerializedSubject<>(BehaviorSubject.k0());
this.voiceStateUpdate = BatchManager.createBatched$default(batchManager, "VOICE_STATE_UPDATE", 0, 0, 6, null);
this.voiceServerUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildMemberListUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.userPaymentSourcesUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.userSubscriptionsUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.streamCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.streamUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.streamServerUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.streamDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.threadCreateOrUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.threadDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.threadListSync = new SerializedSubject<>(BehaviorSubject.j0());
this.threadMemberUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.threadMembersUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.threadMemberListUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.interactionCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.interactionSuccess = new SerializedSubject<>(BehaviorSubject.j0());
this.interactionFailure = new SerializedSubject<>(BehaviorSubject.j0());
this.applicationCommandAutocompleteResult = new SerializedSubject<>(BehaviorSubject.j0());
this.stageInstanceCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.stageInstanceUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.stageInstanceDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.friendSuggestionCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.friendSuggestionDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.guildScheduledEventCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildScheduledEventUpdate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildScheduledEventDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.guildScheduledEventUserCreate = new SerializedSubject<>(BehaviorSubject.j0());
this.guildScheduledEventUserDelete = new SerializedSubject<>(BehaviorSubject.j0());
this.voiceServerUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildMemberListUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.userPaymentSourcesUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.userSubscriptionsUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.streamCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.streamUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.streamServerUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.streamDelete = new SerializedSubject<>(BehaviorSubject.k0());
this.threadCreateOrUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.threadDelete = new SerializedSubject<>(BehaviorSubject.k0());
this.threadListSync = new SerializedSubject<>(BehaviorSubject.k0());
this.threadMemberUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.threadMembersUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.threadMemberListUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.interactionCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.interactionSuccess = new SerializedSubject<>(BehaviorSubject.k0());
this.interactionFailure = new SerializedSubject<>(BehaviorSubject.k0());
this.applicationCommandAutocompleteResult = new SerializedSubject<>(BehaviorSubject.k0());
this.stageInstanceCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.stageInstanceUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.stageInstanceDelete = new SerializedSubject<>(BehaviorSubject.k0());
this.friendSuggestionCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.friendSuggestionDelete = new SerializedSubject<>(BehaviorSubject.k0());
this.guildScheduledEventCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildScheduledEventUpdate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildScheduledEventDelete = new SerializedSubject<>(BehaviorSubject.k0());
this.guildScheduledEventUserCreate = new SerializedSubject<>(BehaviorSubject.k0());
this.guildScheduledEventUserDelete = new SerializedSubject<>(BehaviorSubject.k0());
}
/* JADX WARNING: Illegal instructions before constructor call */

View File

@ -286,24 +286,24 @@ public final class StoreGifPicker extends StoreV2 {
}
private final void fetchGifsForSearchQuery(String str) {
Observable<R> E = this.restAPI.getGifSearchResults(str, "tenor", this.storeUserSettingsSystem.getLocale(), "tinygif", 50).E(StoreGifPicker$fetchGifsForSearchQuery$1.INSTANCE);
m.checkNotNullExpressionValue(E, "restAPI.getGifSearchResu…to)\n }\n }");
Observable r2 = ObservableExtensionsKt.restSubscribeOn$default(E, false, 1, null).r(new StoreGifPicker$fetchGifsForSearchQuery$2(this, str));
m.checkNotNullExpressionValue(r2, "restAPI.getGifSearchResu…y, emptyList())\n }");
ObservableExtensionsKt.appSubscribe$default(r2, StoreGifPicker.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreGifPicker$fetchGifsForSearchQuery$3(this, str), 62, (Object) null);
Observable<R> F = this.restAPI.getGifSearchResults(str, "tenor", this.storeUserSettingsSystem.getLocale(), "tinygif", 50).F(StoreGifPicker$fetchGifsForSearchQuery$1.INSTANCE);
m.checkNotNullExpressionValue(F, "restAPI.getGifSearchResu…to)\n }\n }");
Observable s = ObservableExtensionsKt.restSubscribeOn$default(F, false, 1, null).s(new StoreGifPicker$fetchGifsForSearchQuery$2(this, str));
m.checkNotNullExpressionValue(s, "restAPI.getGifSearchResu…y, emptyList())\n }");
ObservableExtensionsKt.appSubscribe$default(s, StoreGifPicker.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreGifPicker$fetchGifsForSearchQuery$3(this, str), 62, (Object) null);
}
private final void fetchSuggestedSearchTerms(String str) {
Observable r2 = ObservableExtensionsKt.restSubscribeOn$default(this.restAPI.getGifSuggestedSearchTerms("tenor", str, this.storeUserSettingsSystem.getLocale(), 5), false, 1, null).r(new StoreGifPicker$fetchSuggestedSearchTerms$1(this, str));
m.checkNotNullExpressionValue(r2, "restAPI.getGifSuggestedS…y, emptyList())\n }");
ObservableExtensionsKt.appSubscribe$default(r2, StoreGifPicker.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreGifPicker$fetchSuggestedSearchTerms$2(this, str), 62, (Object) null);
Observable s = ObservableExtensionsKt.restSubscribeOn$default(this.restAPI.getGifSuggestedSearchTerms("tenor", str, this.storeUserSettingsSystem.getLocale(), 5), false, 1, null).s(new StoreGifPicker$fetchSuggestedSearchTerms$1(this, str));
m.checkNotNullExpressionValue(s, "restAPI.getGifSuggestedS…y, emptyList())\n }");
ObservableExtensionsKt.appSubscribe$default(s, StoreGifPicker.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreGifPicker$fetchSuggestedSearchTerms$2(this, str), 62, (Object) null);
}
private final void fetchTrendingCategoryGifs() {
this.isFetchingTrendingCategoryGifs = true;
Observable<R> E = this.restAPI.getTrendingGifCategory("tenor", this.storeUserSettingsSystem.getLocale(), "tinygif", 50).E(StoreGifPicker$fetchTrendingCategoryGifs$1.INSTANCE);
m.checkNotNullExpressionValue(E, "restAPI.getTrendingGifCa…to)\n }\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(E, false, 1, null), StoreGifPicker.class, (Context) null, (Function1) null, new StoreGifPicker$fetchTrendingCategoryGifs$2(this), (Function0) null, (Function0) null, new StoreGifPicker$fetchTrendingCategoryGifs$3(this), 54, (Object) null);
Observable<R> F = this.restAPI.getTrendingGifCategory("tenor", this.storeUserSettingsSystem.getLocale(), "tinygif", 50).F(StoreGifPicker$fetchTrendingCategoryGifs$1.INSTANCE);
m.checkNotNullExpressionValue(F, "restAPI.getTrendingGifCa…to)\n }\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(F, false, 1, null), StoreGifPicker.class, (Context) null, (Function1) null, new StoreGifPicker$fetchTrendingCategoryGifs$2(this), (Function0) null, (Function0) null, new StoreGifPicker$fetchTrendingCategoryGifs$3(this), 54, (Object) null);
}
private final List<ModelGifCategory> getGifCategories() {
@ -427,21 +427,21 @@ public final class StoreGifPicker extends StoreV2 {
public final Observable<List<ModelGif>> observeGifsForSearchQuery(String str) {
m.checkNotNullParameter(str, "query");
this.dispatcher.schedule(new StoreGifPicker$observeGifsForSearchQuery$1(this, str));
Observable<R> E = observeSearchHistory().E(new StoreGifPicker$observeGifsForSearchQuery$2(str));
m.checkNotNullExpressionValue(E, "observeSearchHistory().m…gifSearchHistory[query] }");
Observable<List<ModelGif>> E2 = E.w(ObservableExtensionsKt$filterNull$1.INSTANCE).E(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(E2, "filter { it != null }.map { it!! }");
return E2;
Observable<R> F = observeSearchHistory().F(new StoreGifPicker$observeGifsForSearchQuery$2(str));
m.checkNotNullExpressionValue(F, "observeSearchHistory().m…gifSearchHistory[query] }");
Observable<List<ModelGif>> F2 = F.x(ObservableExtensionsKt$filterNull$1.INSTANCE).F(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(F2, "filter { it != null }.map { it!! }");
return F2;
}
public final Observable<List<String>> observeSuggestedSearchTerms(String str) {
m.checkNotNullParameter(str, "query");
this.dispatcher.schedule(new StoreGifPicker$observeSuggestedSearchTerms$2(this, str));
Observable<R> E = observeSuggestedSearchTerms().E(new StoreGifPicker$observeSuggestedSearchTerms$3(str));
m.checkNotNullExpressionValue(E, "observeSuggestedSearchTe…archTermsHistory[query] }");
Observable<List<String>> E2 = E.w(ObservableExtensionsKt$filterNull$1.INSTANCE).E(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(E2, "filter { it != null }.map { it!! }");
return E2;
Observable<R> F = observeSuggestedSearchTerms().F(new StoreGifPicker$observeSuggestedSearchTerms$3(str));
m.checkNotNullExpressionValue(F, "observeSuggestedSearchTe…archTermsHistory[query] }");
Observable<List<String>> F2 = F.x(ObservableExtensionsKt$filterNull$1.INSTANCE).F(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(F2, "filter { it != null }.map { it!! }");
return F2;
}
public final Observable<List<ModelGif>> observeTrendingCategoryGifs() {

View File

@ -149,8 +149,8 @@ public final class StoreGifting$acceptGift$1 extends o implements Function0<Unit
/* renamed from: invoke */
public final void mo17invoke() {
StoreGifting.access$setGifts(this.this$0, this.$gift.getCode(), new StoreGifting.GiftState.Redeeming(this.$gift));
Observable<Void> W = RestAPI.Companion.getApi().acceptGift(this.$gift.getCode()).W(a.c());
m.checkNotNullExpressionValue(W, "RestAPI\n .api\n …scribeOn(Schedulers.io())");
ObservableExtensionsKt.appSubscribe$default(W, this.this$0.getClass(), (Context) null, (Function1) null, new AnonymousClass1(this), (Function0) null, (Function0) null, new AnonymousClass2(this), 54, (Object) null);
Observable<Void> X = RestAPI.Companion.getApi().acceptGift(this.$gift.getCode()).X(a.c());
m.checkNotNullExpressionValue(X, "RestAPI\n .api\n …scribeOn(Schedulers.io())");
ObservableExtensionsKt.appSubscribe$default(X, this.this$0.getClass(), (Context) null, (Function1) null, new AnonymousClass1(this), (Function0) null, (Function0) null, new AnonymousClass2(this), 54, (Object) null);
}
}

View File

@ -26,7 +26,7 @@ public final class StoreGifting {
public static final Companion Companion = new Companion(null);
private final Dispatcher dispatcher;
private HashMap<String, GiftState> knownGifts = new HashMap<>();
private final BehaviorSubject<Map<String, GiftState>> knownGiftsSubject = BehaviorSubject.k0(h0.emptyMap());
private final BehaviorSubject<Map<String, GiftState>> knownGiftsSubject = BehaviorSubject.l0(h0.emptyMap());
/* compiled from: StoreGifting.kt */
public static final class Companion {
@ -475,9 +475,9 @@ public final class StoreGifting {
}
public final Observable<List<ModelGift>> getMyResolvedGifts(long j) {
Observable<R> E = this.knownGiftsSubject.E(new StoreGifting$getMyResolvedGifts$1(j));
m.checkNotNullExpressionValue(E, "knownGiftsSubject\n … }\n }");
return E;
Observable<R> F = this.knownGiftsSubject.F(new StoreGifting$getMyResolvedGifts$1(j));
m.checkNotNullExpressionValue(F, "knownGiftsSubject\n … }\n }");
return F;
}
@StoreThread
@ -488,7 +488,7 @@ public final class StoreGifting {
public final Observable<GiftState> requestGift(String str) {
m.checkNotNullParameter(str, "giftCode");
this.dispatcher.schedule(new StoreGifting$requestGift$1(this, str));
Observable<GiftState> q = this.knownGiftsSubject.E(new StoreGifting$requestGift$2(str)).q();
Observable<GiftState> q = this.knownGiftsSubject.F(new StoreGifting$requestGift$2(str)).q();
m.checkNotNullExpressionValue(q, "knownGiftsSubject\n … .distinctUntilChanged()");
return q;
}

View File

@ -37,7 +37,7 @@ public final class StoreGooglePlayPurchases extends StoreV2 {
private final AnalyticsTracker analyticsTracker;
private final Clock clock;
private final Dispatcher dispatcher;
private final PublishSubject<Event> eventSubject = PublishSubject.j0();
private final PublishSubject<Event> eventSubject = PublishSubject.k0();
private final Gson gson;
private final ObservationDeck observationDeck;
private QueryState queryState;
@ -636,9 +636,9 @@ public final class StoreGooglePlayPurchases extends StoreV2 {
String component3 = pendingDowngrade.component3();
RestAPIParams.DowngradeSubscriptionBody downgradeSubscriptionBody = new RestAPIParams.DowngradeSubscriptionBody(component2, component1, component3);
RetryWithDelay retryWithDelay = RetryWithDelay.INSTANCE;
Observable<Object> W = this.restAPI.downgradeSubscription(downgradeSubscriptionBody).W(i0.p.a.c());
m.checkNotNullExpressionValue(W, "restAPI\n .downgra…scribeOn(Schedulers.io())");
ObservableExtensionsKt.appSubscribe$default(RetryWithDelay.restRetry$default(retryWithDelay, W, 0, null, null, new StoreGooglePlayPurchases$doDowngrade$1(this), 1, null), StoreGooglePlayPurchases.class, (Context) null, (Function1) null, new StoreGooglePlayPurchases$doDowngrade$3(this, component3), (Function0) null, (Function0) null, new StoreGooglePlayPurchases$doDowngrade$2(this, component3), 54, (Object) null);
Observable<Object> X = this.restAPI.downgradeSubscription(downgradeSubscriptionBody).X(i0.p.a.c());
m.checkNotNullExpressionValue(X, "restAPI\n .downgra…scribeOn(Schedulers.io())");
ObservableExtensionsKt.appSubscribe$default(RetryWithDelay.restRetry$default(retryWithDelay, X, 0, null, null, new StoreGooglePlayPurchases$doDowngrade$1(this), 1, null), StoreGooglePlayPurchases.class, (Context) null, (Function1) null, new StoreGooglePlayPurchases$doDowngrade$3(this, component3), (Function0) null, (Function0) null, new StoreGooglePlayPurchases$doDowngrade$2(this, component3), 54, (Object) null);
}
private final Map<String, AnalyticsTrait> getCachedAnalyticsTraitsMap() {

View File

@ -23,7 +23,7 @@ public final class StoreGuildIntegrations {
private final HashMap<Long, Map<Long, ModelGuildIntegration>> allIntegrations = new HashMap<>();
private Subscription closeIntegrationScreenSubscription;
private final Dispatcher dispatcher;
private final BehaviorSubject<Map<Long, Map<Long, ModelGuildIntegration>>> integrationsSubject = BehaviorSubject.k0(new HashMap());
private final BehaviorSubject<Map<Long, Map<Long, ModelGuildIntegration>>> integrationsSubject = BehaviorSubject.l0(new HashMap());
private boolean isOnIntegrationsScreen;
public StoreGuildIntegrations(Dispatcher dispatcher) {
@ -85,13 +85,13 @@ public final class StoreGuildIntegrations {
}
public final Observable<Map<Long, ModelGuildIntegration>> get(long j) {
Observable<Map<Long, ModelGuildIntegration>> q = this.integrationsSubject.E(new StoreGuildIntegrations$get$1(j)).q();
Observable<Map<Long, ModelGuildIntegration>> q = this.integrationsSubject.F(new StoreGuildIntegrations$get$1(j)).q();
m.checkNotNullExpressionValue(q, "integrationsSubject\n … .distinctUntilChanged()");
return q;
}
public final Observable<ModelGuildIntegration> get(long j, long j2) {
Observable<ModelGuildIntegration> q = get(j).E(new StoreGuildIntegrations$get$2(j2)).q();
Observable<ModelGuildIntegration> q = get(j).F(new StoreGuildIntegrations$get$2(j2)).q();
m.checkNotNullExpressionValue(q, "get(guildId)\n .… .distinctUntilChanged()");
return q;
}
@ -108,9 +108,9 @@ public final class StoreGuildIntegrations {
if (subscription != null) {
subscription.unsubscribe();
}
Observable<Long> c02 = Observable.c0(1000, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(c02, "Observable\n .time…S, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(c02, getClass(), (Context) null, new StoreGuildIntegrations$onIntegrationScreenClosed$2(this), (Function1) null, (Function0) null, (Function0) null, new StoreGuildIntegrations$onIntegrationScreenClosed$1(this), 58, (Object) null);
Observable<Long> d02 = Observable.d0(1000, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(d02, "Observable\n .time…S, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(d02, getClass(), (Context) null, new StoreGuildIntegrations$onIntegrationScreenClosed$2(this), (Function1) null, (Function0) null, (Function0) null, new StoreGuildIntegrations$onIntegrationScreenClosed$1(this), 58, (Object) null);
}
public final synchronized void onIntegrationScreenOpened(long j) {

View File

@ -25,6 +25,6 @@ public final class StoreGuilds$Actions$requestMembers$3<T, R> implements b<Strin
}
public final Observable<? extends Long> call(String str) {
return StoreStream.Companion.getGuildSelected().observeSelectedGuildId().s(new AnonymousClass1(str));
return StoreStream.Companion.getGuildSelected().observeSelectedGuildId().t(new AnonymousClass1(str));
}
}

View File

@ -75,9 +75,9 @@ public final class StoreGuilds extends StoreV2 {
public static final void requestMembers(AppComponent appComponent, Observable<String> observable, boolean z2) {
m.checkNotNullParameter(appComponent, "fragment");
m.checkNotNullParameter(observable, "partialUserNameTokenEmitted");
Observable X = observable.o(1000, TimeUnit.MILLISECONDS).E(new StoreGuilds$Actions$requestMembers$1(z2)).w(StoreGuilds$Actions$requestMembers$2.INSTANCE).q().X(StoreGuilds$Actions$requestMembers$3.INSTANCE);
m.checkNotNullExpressionValue(X, "partialUserNameTokenEmit… }\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(X), appComponent, null, 2, null), (Context) null, "requestGuildMembers", (Function1) null, StoreGuilds$Actions$requestMembers$4.INSTANCE, (Function1) null, (Function0) null, (Function0) null, 117, (Object) null);
Observable Y = observable.o(1000, TimeUnit.MILLISECONDS).F(new StoreGuilds$Actions$requestMembers$1(z2)).x(StoreGuilds$Actions$requestMembers$2.INSTANCE).q().Y(StoreGuilds$Actions$requestMembers$3.INSTANCE);
m.checkNotNullExpressionValue(Y, "partialUserNameTokenEmit… }\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(Y), appComponent, null, 2, null), (Context) null, "requestGuildMembers", (Function1) null, StoreGuilds$Actions$requestMembers$4.INSTANCE, (Function1) null, (Function0) null, (Function0) null, 117, (Object) null);
}
public static final void requestRoleMembers(long j, long j2, AppComponent appComponent, RestAPI restAPI, StoreGatewayConnection storeGatewayConnection) {
@ -491,7 +491,7 @@ public final class StoreGuilds extends StoreV2 {
}
public final Observable<Map<Long, GuildMember>> observeComputed(long j) {
Observable<Map<Long, GuildMember>> q = observeComputed().E(new StoreGuilds$observeComputed$2(j)).q();
Observable<Map<Long, GuildMember>> q = observeComputed().F(new StoreGuilds$observeComputed$2(j)).q();
m.checkNotNullExpressionValue(q, "observeComputed()\n … .distinctUntilChanged()");
return q;
}
@ -508,29 +508,29 @@ public final class StoreGuilds extends StoreV2 {
}
public final Observable<Guild> observeFromChannelId(long j) {
Observable<R> X = StoreStream.Companion.getChannels().observeChannel(j).X(new StoreGuilds$observeFromChannelId$1(this));
m.checkNotNullExpressionValue(X, "StoreStream\n .get…ll)\n }\n }");
return X;
Observable<R> Y = StoreStream.Companion.getChannels().observeChannel(j).Y(new StoreGuilds$observeFromChannelId$1(this));
m.checkNotNullExpressionValue(Y, "StoreStream\n .get…ll)\n }\n }");
return Y;
}
public final Observable<Guild> observeGuild(long j) {
Observable<Guild> q = observeGuilds().E(new StoreGuilds$observeGuild$1(j)).q();
Observable<Guild> q = observeGuilds().F(new StoreGuilds$observeGuild$1(j)).q();
m.checkNotNullExpressionValue(q, "observeGuilds()\n … .distinctUntilChanged()");
return q;
}
public final Observable<Set<Long>> observeGuildIds() {
Observable<Set<Long>> q = observeGuilds().X(StoreGuilds$observeGuildIds$1.INSTANCE).q();
Observable<Set<Long>> q = observeGuilds().Y(StoreGuilds$observeGuildIds$1.INSTANCE).q();
m.checkNotNullExpressionValue(q, "observeGuilds()\n … .distinctUntilChanged()");
return q;
}
public final Observable<GuildMember> observeGuildMember(long j, long j2) {
return observeComputed().E(new StoreGuilds$observeGuildMember$1(j, j2)).q();
return observeComputed().F(new StoreGuilds$observeGuildMember$1(j, j2)).q();
}
public final Observable<Map<Long, GuildMember>> observeGuildMembers(long j) {
return observeComputed().E(new StoreGuilds$observeGuildMembers$1(j)).q();
return observeComputed().F(new StoreGuilds$observeGuildMembers$1(j)).q();
}
public final Observable<Map<Long, Guild>> observeGuilds() {
@ -544,7 +544,7 @@ public final class StoreGuilds extends StoreV2 {
}
public final Observable<Long> observeJoinedAt(long j) {
Observable<Long> q = observeJoinedAt().E(new StoreGuilds$observeJoinedAt$2(j)).q();
Observable<Long> q = observeJoinedAt().F(new StoreGuilds$observeJoinedAt$2(j)).q();
m.checkNotNullExpressionValue(q, "observeJoinedAt()\n … .distinctUntilChanged()");
return q;
}
@ -554,7 +554,7 @@ public final class StoreGuilds extends StoreV2 {
}
public final Observable<Map<Long, GuildRole>> observeRoles(long j) {
Observable<Map<Long, GuildRole>> q = observeRoles().E(new StoreGuilds$observeRoles$2(j)).q();
Observable<Map<Long, GuildRole>> q = observeRoles().F(new StoreGuilds$observeRoles$2(j)).q();
m.checkNotNullExpressionValue(q, "observeRoles()\n .… .distinctUntilChanged()");
return q;
}
@ -567,7 +567,7 @@ public final class StoreGuilds extends StoreV2 {
}
public final Observable<List<GuildRole>> observeSortedRoles(long j) {
Observable<List<GuildRole>> q = observeRoles(j).X(StoreGuilds$observeSortedRoles$1.INSTANCE).q();
Observable<List<GuildRole>> q = observeRoles(j).Y(StoreGuilds$observeSortedRoles$1.INSTANCE).q();
m.checkNotNullExpressionValue(q, "observeRoles(guildId)\n … .distinctUntilChanged()");
return q;
}
@ -579,7 +579,7 @@ public final class StoreGuilds extends StoreV2 {
}
public final Observable<GuildVerificationLevel> observeVerificationLevel(long j) {
Observable<GuildVerificationLevel> q = observeGuild(j).E(StoreGuilds$observeVerificationLevel$1.INSTANCE).q();
Observable<GuildVerificationLevel> q = observeGuild(j).F(StoreGuilds$observeVerificationLevel$1.INSTANCE).q();
m.checkNotNullExpressionValue(q, "observeGuild(guildId)\n … .distinctUntilChanged()");
return q;
}

View File

@ -415,7 +415,7 @@ public final class StoreGuildsSorted extends StoreV2 {
private final Observable<State> observeStores() {
StoreStream.Companion companion = StoreStream.Companion;
Observable<State> h = Observable.h(companion.getGuilds().observeGuilds(), companion.getUserGuildSettings().observeMutedGuildIds().E(StoreGuildsSorted$observeStores$1.INSTANCE), companion.getGuilds().observeJoinedAt(), companion.getUserSettings().observeGuildFolders(), StoreGuildsSorted$observeStores$2.INSTANCE);
Observable<State> h = Observable.h(companion.getGuilds().observeGuilds(), companion.getUserGuildSettings().observeMutedGuildIds().F(StoreGuildsSorted$observeStores$1.INSTANCE), companion.getGuilds().observeJoinedAt(), companion.getUserSettings().observeGuildFolders(), StoreGuildsSorted$observeStores$2.INSTANCE);
m.checkNotNullExpressionValue(h, "Observable.combineLatest…lds, joinedAt, folders) }");
return h;
}

View File

@ -253,7 +253,7 @@ public final class StoreInstantInvites extends StoreV2 {
m.checkNotNullExpressionValue(jVar, "Observable.just(InviteState.LoadFailed)");
return jVar;
}
Observable<InviteState> q = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreInstantInvites$observeInvite$1(this), 14, null).E(new StoreInstantInvites$observeInvite$2(str)).q();
Observable<InviteState> q = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreInstantInvites$observeInvite$1(this), 14, null).F(new StoreInstantInvites$observeInvite$2(str)).q();
m.checkNotNullExpressionValue(q, "observationDeck.connectR… .distinctUntilChanged()");
return q;
}

View File

@ -25,8 +25,8 @@ public final class StoreInviteSettings extends Store {
public static final String LOCATION_DEEPLINK = "Deeplink";
public static final String LOCATION_JOIN = "Join Guild Modal";
private ModelInvite.Settings inviteSettings = new ModelInvite.Settings(86400);
private final BehaviorSubject<ModelInvite.Settings> inviteSettingsSubject = BehaviorSubject.k0(this.inviteSettings);
private final BehaviorSubject<InviteCode> pendingInviteCodeSubject = BehaviorSubject.k0(null);
private final BehaviorSubject<ModelInvite.Settings> inviteSettingsSubject = BehaviorSubject.l0(this.inviteSettings);
private final BehaviorSubject<InviteCode> pendingInviteCodeSubject = BehaviorSubject.l0(null);
/* compiled from: StoreInviteSettings.kt */
public static final class Companion {
@ -200,9 +200,9 @@ public final class StoreInviteSettings extends Store {
}
public final Observable<ModelInvite> generateInviteDefaultChannel(long j) {
Observable<ModelInvite> y2 = getInvitableChannels(j).E(StoreInviteSettings$generateInviteDefaultChannel$1.INSTANCE).E(StoreInviteSettings$generateInviteDefaultChannel$2.INSTANCE).E(StoreInviteSettings$generateInviteDefaultChannel$3.INSTANCE).Y(1).y(new StoreInviteSettings$generateInviteDefaultChannel$4(this, j));
m.checkNotNullExpressionValue(y2, "getInvitableChannels(gui…le.just(null)\n }");
return y2;
Observable<ModelInvite> z2 = getInvitableChannels(j).F(StoreInviteSettings$generateInviteDefaultChannel$1.INSTANCE).F(StoreInviteSettings$generateInviteDefaultChannel$2.INSTANCE).F(StoreInviteSettings$generateInviteDefaultChannel$3.INSTANCE).Z(1).z(new StoreInviteSettings$generateInviteDefaultChannel$4(this, j));
m.checkNotNullExpressionValue(z2, "getInvitableChannels(gui…le.just(null)\n }");
return z2;
}
public final Observable<Map<Long, Channel>> getInvitableChannels(long j) {
@ -213,9 +213,9 @@ public final class StoreInviteSettings extends Store {
}
public final Observable<ModelInvite> getInvite() {
Observable<ModelInvite> E = getInviteCode().y(StoreInviteSettings$getInvite$1.INSTANCE).E(StoreInviteSettings$getInvite$2.INSTANCE);
m.checkNotNullExpressionValue(E, "getInviteCode()\n .f…-> null\n }\n }");
return E;
Observable<ModelInvite> F = getInviteCode().z(StoreInviteSettings$getInvite$1.INSTANCE).F(StoreInviteSettings$getInvite$2.INSTANCE);
m.checkNotNullExpressionValue(F, "getInviteCode()\n .f…-> null\n }\n }");
return F;
}
public final Observable<InviteCode> getInviteCode() {
@ -260,8 +260,8 @@ public final class StoreInviteSettings extends Store {
public final void trackWithInvite$app_productionBetaRelease(Class<?> cls, Function1<? super ModelInvite, Unit> function1) {
m.checkNotNullParameter(cls, "clazz");
m.checkNotNullParameter(function1, "trackBlock");
Observable<ModelInvite> w2 = getInvite().w(StoreInviteSettings$trackWithInvite$1.INSTANCE);
m.checkNotNullExpressionValue(w2, "getInvite()\n .filter { it != null }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(ObservableExtensionsKt.takeSingleUntilTimeout$default(w2, 250, false, 2, null)), cls, (Context) null, (Function1) null, new StoreInviteSettings$trackWithInvite$2(function1), (Function0) null, (Function0) null, function1, 54, (Object) null);
Observable<ModelInvite> x2 = getInvite().x(StoreInviteSettings$trackWithInvite$1.INSTANCE);
m.checkNotNullExpressionValue(x2, "getInvite()\n .filter { it != null }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(ObservableExtensionsKt.takeSingleUntilTimeout$default(x2, 250, false, 2, null)), cls, (Context) null, (Function1) null, new StoreInviteSettings$trackWithInvite$2(function1), (Function0) null, (Function0) null, function1, 54, (Object) null);
}
}

View File

@ -33,7 +33,7 @@ public final class StoreLocalMessagesHolder {
private Map<Long, ? extends List<Message>> cacheSnapshot = h0.emptyMap();
private final Gson gson;
private final HashMap<Long, TreeMap<Long, Message>> messages = new HashMap<>();
private final Subject<Map<Long, List<Message>>, Map<Long, List<Message>>> messagesPublisher = new SerializedSubject(BehaviorSubject.j0());
private final Subject<Map<Long, List<Message>>, Map<Long, List<Message>>> messagesPublisher = new SerializedSubject(BehaviorSubject.k0());
private Map<Long, ? extends List<Message>> messagesSnapshot = h0.emptyMap();
private SharedPreferences sharedPreferences;
private final Set<Long> updatedChannels = new HashSet();

View File

@ -32,7 +32,7 @@ public final class StoreLurking {
private final StoreGuilds guildsStore;
private LurkRequest lurkRequest;
private final Map<Long, LurkContext> lurkedGuilds = new LinkedHashMap();
private final BehaviorSubject<Map<Long, LurkContext>> lurkedGuildsSubject = BehaviorSubject.k0(new LinkedHashMap());
private final BehaviorSubject<Map<Long, LurkContext>> lurkedGuildsSubject = BehaviorSubject.l0(new LinkedHashMap());
private String sessionId;
private final StoreStream stream;
@ -306,9 +306,9 @@ public final class StoreLurking {
}
public final Observable<Set<Long>> getLurkingGuildIds() {
Observable<R> E = this.lurkedGuildsSubject.E(StoreLurking$getLurkingGuildIds$1.INSTANCE);
m.checkNotNullExpressionValue(E, "lurkedGuildsSubject.map { it.keys }");
return E;
Observable<R> F = this.lurkedGuildsSubject.F(StoreLurking$getLurkingGuildIds$1.INSTANCE);
m.checkNotNullExpressionValue(F, "lurkedGuildsSubject.map { it.keys }");
return F;
}
public final Set<Long> getLurkingGuildIdsSync() {

View File

@ -81,7 +81,7 @@ public final class StoreMediaEngine extends Store {
private Long previousVoiceChannelId;
private final SerializedSubject<Boolean, Boolean> pttActiveSubject;
private VideoInputDeviceDescription selectedVideoInputDevice;
private final BehaviorSubject<VideoInputDeviceDescription> selectedVideoInputDeviceSubject = BehaviorSubject.k0(this.selectedVideoInputDevice);
private final BehaviorSubject<VideoInputDeviceDescription> selectedVideoInputDeviceSubject = BehaviorSubject.l0(this.selectedVideoInputDevice);
private final StoreStream storeStream;
private long userId;
private VideoInputDeviceDescription[] videoInputDevices;
@ -215,21 +215,21 @@ public final class StoreMediaEngine extends Store {
ListenerCollectionSubject<Listener> listenerCollectionSubject = new ListenerCollectionSubject<>();
this.listenerSubject = listenerCollectionSubject;
this.listeners = listenerCollectionSubject;
SerializedSubject<MediaEngine.LocalVoiceStatus, MediaEngine.LocalVoiceStatus> serializedSubject = new SerializedSubject<>(BehaviorSubject.k0(LOCAL_VOICE_STATUS_DEFAULT));
SerializedSubject<MediaEngine.LocalVoiceStatus, MediaEngine.LocalVoiceStatus> serializedSubject = new SerializedSubject<>(BehaviorSubject.l0(LOCAL_VOICE_STATUS_DEFAULT));
this.localVoiceStatusSubject = serializedSubject;
Boolean bool = Boolean.FALSE;
this.pttActiveSubject = new SerializedSubject<>(BehaviorSubject.k0(bool));
this.pttActiveSubject = new SerializedSubject<>(BehaviorSubject.l0(bool));
VideoInputDeviceDescription[] videoInputDeviceDescriptionArr = new VideoInputDeviceDescription[0];
this.videoInputDevices = videoInputDeviceDescriptionArr;
this.videoInputDevicesSubject = BehaviorSubject.k0(j.asList(videoInputDeviceDescriptionArr));
this.openSLESConfigSubject = new SerializedSubject<>(BehaviorSubject.j0());
this.isNativeEngineInitializedSubject = new SerializedSubject<>(BehaviorSubject.k0(bool));
this.videoInputDevicesSubject = BehaviorSubject.l0(j.asList(videoInputDeviceDescriptionArr));
this.openSLESConfigSubject = new SerializedSubject<>(BehaviorSubject.k0());
this.isNativeEngineInitializedSubject = new SerializedSubject<>(BehaviorSubject.l0(bool));
this.userId = -1;
this.hasNativeEngineEverInitializedCache = new Persister<>("CACHE_KEY_NATIVE_ENGINE_EVER_INITIALIZED", Boolean.valueOf(this.hasNativeEngineEverInitialized));
this.onKrispStatusSubject = PublishSubject.j0();
Observable<MediaEngine.LocalVoiceStatus> P = ObservableExtensionsKt.computationLatest(serializedSubject).q().t(new StoreMediaEngine$sam$rx_functions_Action0$0(new StoreMediaEngine$localVoiceStatus$1(this))).u(new StoreMediaEngine$sam$rx_functions_Action0$0(new StoreMediaEngine$localVoiceStatus$2(this))).P();
m.checkNotNullExpressionValue(P, "localVoiceStatusSubject\n…ening)\n .share()");
this.localVoiceStatus = P;
this.onKrispStatusSubject = PublishSubject.k0();
Observable<MediaEngine.LocalVoiceStatus> Q = ObservableExtensionsKt.computationLatest(serializedSubject).q().u(new StoreMediaEngine$sam$rx_functions_Action0$0(new StoreMediaEngine$localVoiceStatus$1(this))).v(new StoreMediaEngine$sam$rx_functions_Action0$0(new StoreMediaEngine$localVoiceStatus$2(this))).Q();
m.checkNotNullExpressionValue(Q, "localVoiceStatusSubject\n…ening)\n .share()");
this.localVoiceStatus = Q;
}
public static final /* synthetic */ void access$disableLocalVoiceStatusListening(StoreMediaEngine storeMediaEngine) {
@ -635,9 +635,9 @@ public final class StoreMediaEngine extends Store {
}
public final void handleMicrophonePermissionGranted() {
Observable<Boolean> Y = this.isNativeEngineInitializedSubject.Y(1);
m.checkNotNullExpressionValue(Y, "isNativeEngineInitializedSubject\n .take(1)");
ObservableExtensionsKt.appSubscribe$default(Y, StoreMediaEngine.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMediaEngine$handleMicrophonePermissionGranted$1(this), 62, (Object) null);
Observable<Boolean> Z = this.isNativeEngineInitializedSubject.Z(1);
m.checkNotNullExpressionValue(Z, "isNativeEngineInitializedSubject\n .take(1)");
ObservableExtensionsKt.appSubscribe$default(Z, StoreMediaEngine.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMediaEngine$handleMicrophonePermissionGranted$1(this), 62, (Object) null);
}
/* JADX WARNING: Code restructure failed: missing block: B:8:0x0010, code lost:
@ -689,11 +689,11 @@ public final class StoreMediaEngine extends Store {
m.checkNotNullParameter(gVar, "echoCancellation");
m.checkNotNullParameter(storeMediaEngine$init$echoCancellationCallback$1, "echoCancellationCallback");
this.mediaEngine = new c.a.q.m0.c.k(context, engineListener, new c.a.q.c(newSingleThreadExecutor, false), valueOf, appLog, gVar, storeMediaEngine$init$echoCancellationCallback$1, null, null, 384);
Observable<R> E = this.storeStream.getExperiments$app_productionBetaRelease().observeUserExperiment("2021-05_opensl_default_enable_android", true).w(ObservableExtensionsKt$filterNull$1.INSTANCE).E(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(E, "filter { it != null }.map { it!! }");
Observable Y = E.Y(1);
m.checkNotNullExpressionValue(Y, "storeStream.experiments.…erNull()\n .take(1)");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(Y), StoreMediaEngine.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMediaEngine$init$1(this), 62, (Object) null);
Observable<R> F = this.storeStream.getExperiments$app_productionBetaRelease().observeUserExperiment("2021-05_opensl_default_enable_android", true).x(ObservableExtensionsKt$filterNull$1.INSTANCE).F(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(F, "filter { it != null }.map { it!! }");
Observable Z = F.Z(1);
m.checkNotNullExpressionValue(Z, "storeStream.experiments.…erNull()\n .take(1)");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(Z), StoreMediaEngine.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMediaEngine$init$1(this), 62, (Object) null);
}
public final Observable<KrispOveruseDetector.Status> onKrispStatusEvent() {

View File

@ -41,7 +41,7 @@ public final class StoreMediaSettings$init$1<T, R> implements b<Long, Observable
StorePermissions access$getStorePermissions$p = StoreMediaSettings.access$getStorePermissions$p(this.this$0.this$0);
Long l = this.$id;
m.checkNotNullExpressionValue(l, ModelAuditLogEntry.CHANGE_KEY_ID);
return access$getStorePermissions$p.observePermissionsForChannel(l.longValue()).E(AnonymousClass1.INSTANCE);
return access$getStorePermissions$p.observePermissionsForChannel(l.longValue()).F(AnonymousClass1.INSTANCE);
}
}
@ -52,6 +52,6 @@ public final class StoreMediaSettings$init$1<T, R> implements b<Long, Observable
public final Observable<? extends Boolean> call(Long l) {
StoreChannels access$getStoreChannels$p = StoreMediaSettings.access$getStoreChannels$p(this.this$0);
m.checkNotNullExpressionValue(l, ModelAuditLogEntry.CHANGE_KEY_ID);
return access$getStoreChannels$p.observeChannel(l.longValue()).X(new AnonymousClass1(this, l));
return access$getStoreChannels$p.observeChannel(l.longValue()).Y(new AnonymousClass1(this, l));
}
}

View File

@ -429,7 +429,7 @@ public final class StoreMediaSettings extends Store {
this.appSoundManager = appSoundManager;
VoiceConfiguration default_voice_config = VoiceConfiguration.Companion.getDEFAULT_VOICE_CONFIG();
this.voiceConfiguration = default_voice_config;
this.voiceConfigurationSubject = new SerializedSubject<>(BehaviorSubject.k0(default_voice_config));
this.voiceConfigurationSubject = new SerializedSubject<>(BehaviorSubject.l0(default_voice_config));
this.canUseVad = true;
}
@ -472,9 +472,9 @@ public final class StoreMediaSettings extends Store {
}
public final Observable<MediaEngineConnection.InputMode> getInputMode() {
Observable<VoiceConfiguration> E = this.voiceConfigurationSubject.E(StoreMediaSettings$getInputMode$1.INSTANCE);
m.checkNotNullExpressionValue(E, "voiceConfigurationSubjec… .map { it.inputMode }");
Observable<MediaEngineConnection.InputMode> q = ObservableExtensionsKt.computationLatest(E).q();
Observable<VoiceConfiguration> F = this.voiceConfigurationSubject.F(StoreMediaSettings$getInputMode$1.INSTANCE);
m.checkNotNullExpressionValue(F, "voiceConfigurationSubjec… .map { it.inputMode }");
Observable<MediaEngineConnection.InputMode> q = ObservableExtensionsKt.computationLatest(F).q();
m.checkNotNullExpressionValue(q, "voiceConfigurationSubjec… .distinctUntilChanged()");
return q;
}
@ -484,25 +484,25 @@ public final class StoreMediaSettings extends Store {
}
public final Observable<Map<Long, Boolean>> getUsersMuted() {
Observable<VoiceConfiguration> E = this.voiceConfigurationSubject.E(StoreMediaSettings$getUsersMuted$1.INSTANCE);
m.checkNotNullExpressionValue(E, "voiceConfigurationSubjec… .map { it.mutedUsers }");
Observable<Map<Long, Boolean>> q = ObservableExtensionsKt.computationLatest(E).q();
Observable<VoiceConfiguration> F = this.voiceConfigurationSubject.F(StoreMediaSettings$getUsersMuted$1.INSTANCE);
m.checkNotNullExpressionValue(F, "voiceConfigurationSubjec… .map { it.mutedUsers }");
Observable<Map<Long, Boolean>> q = ObservableExtensionsKt.computationLatest(F).q();
m.checkNotNullExpressionValue(q, "voiceConfigurationSubjec… .distinctUntilChanged()");
return q;
}
public final Observable<Map<Long, Boolean>> getUsersOffScreen() {
Observable<VoiceConfiguration> E = this.voiceConfigurationSubject.E(StoreMediaSettings$getUsersOffScreen$1.INSTANCE);
m.checkNotNullExpressionValue(E, "voiceConfigurationSubjec…map { it.offScreenUsers }");
Observable<Map<Long, Boolean>> q = ObservableExtensionsKt.computationLatest(E).q();
Observable<VoiceConfiguration> F = this.voiceConfigurationSubject.F(StoreMediaSettings$getUsersOffScreen$1.INSTANCE);
m.checkNotNullExpressionValue(F, "voiceConfigurationSubjec…map { it.offScreenUsers }");
Observable<Map<Long, Boolean>> q = ObservableExtensionsKt.computationLatest(F).q();
m.checkNotNullExpressionValue(q, "voiceConfigurationSubjec… .distinctUntilChanged()");
return q;
}
public final Observable<Map<Long, Float>> getUsersVolume() {
Observable<VoiceConfiguration> E = this.voiceConfigurationSubject.E(StoreMediaSettings$getUsersVolume$1.INSTANCE);
m.checkNotNullExpressionValue(E, "voiceConfigurationSubjec… { it.userOutputVolumes }");
Observable<Map<Long, Float>> q = ObservableExtensionsKt.computationLatest(E).q();
Observable<VoiceConfiguration> F = this.voiceConfigurationSubject.F(StoreMediaSettings$getUsersVolume$1.INSTANCE);
m.checkNotNullExpressionValue(F, "voiceConfigurationSubjec… { it.userOutputVolumes }");
Observable<Map<Long, Float>> q = ObservableExtensionsKt.computationLatest(F).q();
m.checkNotNullExpressionValue(q, "voiceConfigurationSubjec… .distinctUntilChanged()");
return q;
}
@ -535,23 +535,23 @@ public final class StoreMediaSettings extends Store {
public final void init() {
setVoiceConfiguration(this.voiceConfigurationCache.read());
Observable<R> X = this.storeVoiceChannelSelected.observeSelectedVoiceChannelId().X(new StoreMediaSettings$init$1(this));
m.checkNotNullExpressionValue(X, "storeVoiceChannelSelecte… }\n }");
ObservableExtensionsKt.appSubscribe$default(X, StoreMediaSettings.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMediaSettings$init$2(this), 62, (Object) null);
Observable<R> Y = this.storeVoiceChannelSelected.observeSelectedVoiceChannelId().Y(new StoreMediaSettings$init$1(this));
m.checkNotNullExpressionValue(Y, "storeVoiceChannelSelecte… }\n }");
ObservableExtensionsKt.appSubscribe$default(Y, StoreMediaSettings.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMediaSettings$init$2(this), 62, (Object) null);
}
public final Observable<Boolean> isSelfDeafened() {
Observable<VoiceConfiguration> E = this.voiceConfigurationSubject.E(StoreMediaSettings$isSelfDeafened$1.INSTANCE);
m.checkNotNullExpressionValue(E, "voiceConfigurationSubjec…map { it.isSelfDeafened }");
Observable<Boolean> q = ObservableExtensionsKt.computationLatest(E).q();
Observable<VoiceConfiguration> F = this.voiceConfigurationSubject.F(StoreMediaSettings$isSelfDeafened$1.INSTANCE);
m.checkNotNullExpressionValue(F, "voiceConfigurationSubjec…map { it.isSelfDeafened }");
Observable<Boolean> q = ObservableExtensionsKt.computationLatest(F).q();
m.checkNotNullExpressionValue(q, "voiceConfigurationSubjec… .distinctUntilChanged()");
return q;
}
public final Observable<Boolean> isSelfMuted() {
Observable<VoiceConfiguration> E = this.voiceConfigurationSubject.E(StoreMediaSettings$isSelfMuted$1.INSTANCE);
m.checkNotNullExpressionValue(E, "voiceConfigurationSubjec….map { it.isSelfMuted() }");
Observable<Boolean> q = ObservableExtensionsKt.computationLatest(E).q();
Observable<VoiceConfiguration> F = this.voiceConfigurationSubject.F(StoreMediaSettings$isSelfMuted$1.INSTANCE);
m.checkNotNullExpressionValue(F, "voiceConfigurationSubjec….map { it.isSelfMuted() }");
Observable<Boolean> q = ObservableExtensionsKt.computationLatest(F).q();
m.checkNotNullExpressionValue(q, "voiceConfigurationSubjec… .distinctUntilChanged()");
return q;
}

View File

@ -426,9 +426,9 @@ public final class StoreMentions extends StoreV2 {
}
public final Observable<Integer> observeTotalMentions() {
Observable<R> E = observeMentionCounts().E(StoreMentions$observeTotalMentions$1.INSTANCE);
m.checkNotNullExpressionValue(E, "observeMentionCounts()\n … .map { it.values.sum() }");
return E;
Observable<R> F = observeMentionCounts().F(StoreMentions$observeTotalMentions$1.INSTANCE);
m.checkNotNullExpressionValue(F, "observeMentionCounts()\n … .map { it.values.sum() }");
return F;
}
@StoreThread

View File

@ -73,6 +73,6 @@ public final class StoreMessageAck$init$1<T, R> implements b<Long, Observable<?
Observable<Set<Long>> o = StoreMessageAck.access$getStream$p(this.this$0).getMessages$app_productionBetaRelease().getAllDetached().o(50, TimeUnit.MILLISECONDS);
StoreMessagesLoader messagesLoader$app_productionBetaRelease = StoreMessageAck.access$getStream$p(this.this$0).getMessagesLoader$app_productionBetaRelease();
m.checkNotNullExpressionValue(l, "selectedChannelId");
return Observable.h(o, messagesLoader$app_productionBetaRelease.getMessagesLoadedState(l.longValue()).E(AnonymousClass1.INSTANCE).q(), StoreMessageAck.access$getStream$p(this.this$0).getChat$app_productionBetaRelease().observeInteractionState().w(new AnonymousClass2(l)), StoreMessageAck.access$getStream$p(this.this$0).getMessageAck$app_productionBetaRelease().observeForChannel(l.longValue()), AnonymousClass3.INSTANCE);
return Observable.h(o, messagesLoader$app_productionBetaRelease.getMessagesLoadedState(l.longValue()).F(AnonymousClass1.INSTANCE).q(), StoreMessageAck.access$getStream$p(this.this$0).getChat$app_productionBetaRelease().observeInteractionState().x(new AnonymousClass2(l)), StoreMessageAck.access$getStream$p(this.this$0).getMessageAck$app_productionBetaRelease().observeForChannel(l.longValue()), AnonymousClass3.INSTANCE);
}
}

View File

@ -42,6 +42,6 @@ public final class StoreMessageAck$observeThreadState$1<T, R> implements b<Chann
}
public final Observable<? extends StoreMessageAck.ThreadState> call(Channel channel) {
return (channel == null || !ChannelUtils.B(channel)) ? new j(StoreMessageAck.ThreadState.NotThread.INSTANCE) : StoreMessageAck.access$getStream$p(this.this$0).getThreadsActiveJoined$app_productionBetaRelease().observeAllActiveJoinedThreadsById().E(new AnonymousClass1(this));
return (channel == null || !ChannelUtils.B(channel)) ? new j(StoreMessageAck.ThreadState.NotThread.INSTANCE) : StoreMessageAck.access$getStream$p(this.this$0).getThreadsActiveJoined$app_productionBetaRelease().observeAllActiveJoinedThreadsById().F(new AnonymousClass1(this));
}
}

View File

@ -93,8 +93,8 @@ public final class StoreMessageAck$postPendingAck$1 extends o implements Functio
long component1 = pendingAck.component1();
StoreMessageAck.Ack component2 = pendingAck.component2();
StoreMessageAck.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, component1, component2));
Observable s = ObservableExtensionsKt.restSubscribeOn$default(StoreMessageAck.access$getRestAPI$p(this.this$0).postChannelMessagesAck(component1, Long.valueOf(component2.getMessageId()), new RestAPIParams.ChannelMessagesAck(Boolean.valueOf(component2.isLockedAck()), Integer.valueOf(this.$mentionCount))), false, 1, null).s(new AnonymousClass2(component1));
m.checkNotNullExpressionValue(s, "restAPI\n .postC…).ackMessage(channelId) }");
ObservableExtensionsKt.appSubscribe$default(s, (Context) null, "REST: ack", (Function1) null, AnonymousClass3.INSTANCE, (Function1) null, (Function0) null, (Function0) null, 117, (Object) null);
Observable t = ObservableExtensionsKt.restSubscribeOn$default(StoreMessageAck.access$getRestAPI$p(this.this$0).postChannelMessagesAck(component1, Long.valueOf(component2.getMessageId()), new RestAPIParams.ChannelMessagesAck(Boolean.valueOf(component2.isLockedAck()), Integer.valueOf(this.$mentionCount))), false, 1, null).t(new AnonymousClass2(component1));
m.checkNotNullExpressionValue(t, "restAPI\n .postC…).ackMessage(channelId) }");
ObservableExtensionsKt.appSubscribe$default(t, (Context) null, "REST: ack", (Function1) null, AnonymousClass3.INSTANCE, (Function1) null, (Function0) null, (Function0) null, 117, (Object) null);
}
}

View File

@ -384,9 +384,9 @@ public final class StoreMessageAck extends StoreV2 {
}
private final Observable<PendingAck> getPendingAck(Observable<Long> observable, boolean z2, boolean z3) {
Observable<R> X = observable.X(new StoreMessageAck$getPendingAck$2(this, z2, new StoreMessageAck$getPendingAck$1(z3)));
m.checkNotNullExpressionValue(X, "switchMap { channelId ->…gAck.EMPTY)\n }\n }");
return X;
Observable<R> Y = observable.Y(new StoreMessageAck$getPendingAck$2(this, z2, new StoreMessageAck$getPendingAck$1(z3)));
m.checkNotNullExpressionValue(Y, "switchMap { channelId ->…gAck.EMPTY)\n }\n }");
return Y;
}
@StoreThread
@ -401,22 +401,22 @@ public final class StoreMessageAck extends StoreV2 {
}
private final Observable<Pair<Set<Long>, Set<Long>>> observeActiveJoinedThreadIdsWithPrevious() {
Observable<Pair<Set<Long>, Set<Long>>> O = this.stream.getThreadsActiveJoined$app_productionBetaRelease().observeAllActiveJoinedThreadsById().E(StoreMessageAck$observeActiveJoinedThreadIdsWithPrevious$1.INSTANCE).q().O(new Pair(n0.emptySet(), n0.emptySet()), StoreMessageAck$observeActiveJoinedThreadIdsWithPrevious$2.INSTANCE);
m.checkNotNullExpressionValue(O, "stream\n .threadsA…oinedThreadIds)\n }");
return O;
Observable<Pair<Set<Long>, Set<Long>>> P = this.stream.getThreadsActiveJoined$app_productionBetaRelease().observeAllActiveJoinedThreadsById().F(StoreMessageAck$observeActiveJoinedThreadIdsWithPrevious$1.INSTANCE).q().P(new Pair(n0.emptySet(), n0.emptySet()), StoreMessageAck$observeActiveJoinedThreadIdsWithPrevious$2.INSTANCE);
m.checkNotNullExpressionValue(P, "stream\n .threadsA…oinedThreadIds)\n }");
return P;
}
private final Observable<ThreadState> observeThreadState(long j) {
Observable<ThreadState> q = this.stream.getChannels$app_productionBetaRelease().observeChannel(j).X(new StoreMessageAck$observeThreadState$1(this, j)).q();
Observable<ThreadState> q = this.stream.getChannels$app_productionBetaRelease().observeChannel(j).Y(new StoreMessageAck$observeThreadState$1(this, j)).q();
m.checkNotNullExpressionValue(q, "stream\n .channe… .distinctUntilChanged()");
return q;
}
private final void postPendingAck(Observable<PendingAck> observable, int i) {
StoreMessageAck$postPendingAck$1 storeMessageAck$postPendingAck$1 = new StoreMessageAck$postPendingAck$1(this, i);
Observable<PendingAck> w2 = observable.w(StoreMessageAck$postPendingAck$2.INSTANCE);
m.checkNotNullExpressionValue(w2, "filter { it != PendingAck.EMPTY }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(w2), observable.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessageAck$postPendingAck$3(storeMessageAck$postPendingAck$1), 62, (Object) null);
Observable<PendingAck> x2 = observable.x(StoreMessageAck$postPendingAck$2.INSTANCE);
m.checkNotNullExpressionValue(x2, "filter { it != PendingAck.EMPTY }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(x2), observable.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessageAck$postPendingAck$3(storeMessageAck$postPendingAck$1), 62, (Object) null);
}
public static /* synthetic */ void postPendingAck$default(StoreMessageAck storeMessageAck, Observable observable, int i, int i2, Object obj) {
@ -635,15 +635,15 @@ public final class StoreMessageAck extends StoreV2 {
public void init(Context context) {
m.checkNotNullParameter(context, "context");
super.init(context);
Observable<R> X = StoreStream.Companion.getChannelsSelected().observeId().q().X(new StoreMessageAck$init$1(this));
m.checkNotNullExpressionValue(X, "StoreStream\n .get… 0L\n }\n }");
Observable<Long> o = ObservableExtensionsKt.computationLatest(X).o(500, TimeUnit.MILLISECONDS);
Observable<R> Y = StoreStream.Companion.getChannelsSelected().observeId().q().Y(new StoreMessageAck$init$1(this));
m.checkNotNullExpressionValue(Y, "StoreStream\n .get… 0L\n }\n }");
Observable<Long> o = ObservableExtensionsKt.computationLatest(Y).o(500, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(o, "StoreStream\n .get…0, TimeUnit.MILLISECONDS)");
postPendingAck$default(this, getPendingAck(o, false, false), 0, 1, null);
}
public final void markUnread(long j, long j2) {
Observable j3 = Observable.j(this.stream.getMessages$app_productionBetaRelease().observeMessagesForChannel(j).w(StoreMessageAck$markUnread$1.INSTANCE), observeThreadState(j), StoreMessageAck$markUnread$2.INSTANCE);
Observable j3 = Observable.j(this.stream.getMessages$app_productionBetaRelease().observeMessagesForChannel(j).x(StoreMessageAck$markUnread$1.INSTANCE), observeThreadState(j), StoreMessageAck$markUnread$2.INSTANCE);
m.checkNotNullExpressionValue(j3, "Observable\n .comb…lMessages, threadState) }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout(j3, 10, false), StoreMessageAck.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessageAck$markUnread$3(this, j2, j), 62, (Object) null);
}

View File

@ -110,9 +110,9 @@ public final class StoreMessageState {
public StoreMessageState(Dispatcher dispatcher) {
m.checkNotNullParameter(dispatcher, "dispatcher");
this.dispatcher = dispatcher;
BehaviorSubject<Map<Long, State>> k0 = BehaviorSubject.k0(h0.emptyMap());
m.checkNotNullExpressionValue(k0, "BehaviorSubject.create(emptyMap())");
this.messageStateSubject = k0;
BehaviorSubject<Map<Long, State>> l0 = BehaviorSubject.l0(h0.emptyMap());
m.checkNotNullExpressionValue(l0, "BehaviorSubject.create(emptyMap())");
this.messageStateSubject = l0;
}
public static final /* synthetic */ void access$updateState(StoreMessageState storeMessageState, long j, Function1 function1) {
@ -121,32 +121,32 @@ public final class StoreMessageState {
@StoreThread
private final void resetState(List<Long> list) {
Map<Long, State> m0 = this.messageStateSubject.m0();
Map<Long, State> n0 = this.messageStateSubject.n0();
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
long longValue = ((Number) obj).longValue();
m.checkNotNullExpressionValue(m0, "messageStateMap");
if (m0.containsKey(Long.valueOf(longValue))) {
m.checkNotNullExpressionValue(n0, "messageStateMap");
if (n0.containsKey(Long.valueOf(longValue))) {
arrayList.add(obj);
}
}
if (!arrayList.isEmpty()) {
BehaviorSubject<Map<Long, State>> behaviorSubject = this.messageStateSubject;
m.checkNotNullExpressionValue(m0, "messageStateMap");
behaviorSubject.onNext(h0.minus((Map) m0, (Iterable) arrayList));
m.checkNotNullExpressionValue(n0, "messageStateMap");
behaviorSubject.onNext(h0.minus((Map) n0, (Iterable) arrayList));
}
}
@StoreThread
private final void updateState(long j, Function1<? super State, State> function1) {
Map<Long, State> m0 = this.messageStateSubject.m0();
State state = m0.get(Long.valueOf(j));
Map<Long, State> n0 = this.messageStateSubject.n0();
State state = n0.get(Long.valueOf(j));
if (state == null) {
state = new State(null, null, 3, null);
}
BehaviorSubject<Map<Long, State>> behaviorSubject = this.messageStateSubject;
m.checkNotNullExpressionValue(m0, "messageStateMap");
behaviorSubject.onNext(h0.plus(m0, o.to(Long.valueOf(j), function1.invoke(state))));
m.checkNotNullExpressionValue(n0, "messageStateMap");
behaviorSubject.onNext(h0.plus(n0, o.to(Long.valueOf(j), function1.invoke(state))));
}
public final Observable<Map<Long, State>> getMessageState() {

View File

@ -41,7 +41,6 @@ import com.discord.utilities.user.UserUtils;
import com.lytefast.flexinput.model.Attachment;
import i0.l.a.q;
import i0.l.a.r;
import i0.l.a.u0;
import i0.l.a.x0;
import java.util.ArrayList;
import java.util.Collection;
@ -67,7 +66,7 @@ public final class StoreMessages extends Store {
private Context context;
private final Dispatcher dispatcher;
private final StoreMessagesHolder holder = new StoreMessagesHolder();
private final BehaviorSubject<Boolean> initResendFinished = BehaviorSubject.k0(Boolean.FALSE);
private final BehaviorSubject<Boolean> initResendFinished = BehaviorSubject.l0(Boolean.FALSE);
private final StoreLocalMessagesHolder localMessagesHolder = new StoreLocalMessagesHolder();
private final HashMap<Long, MessageQueue> messageQueues = new HashMap<>();
private final ExecutorService queueExecutor = Executors.newSingleThreadExecutor();
@ -225,21 +224,19 @@ public final class StoreMessages extends Store {
}
private final Observable<List<Message>> observeLocalMessagesForChannel(long j) {
Observable<R> E = this.localMessagesHolder.getMessagesPublisher().E(new StoreMessages$observeLocalMessagesForChannel$1(j));
m.checkNotNullExpressionValue(E, "localMessagesHolder\n …annelId] ?: emptyList() }");
Observable computationBuffered = ObservableExtensionsKt.computationBuffered(E);
Observable<List<Message>> g02 = Observable.g0(new r(computationBuffered.i, new u0(StoreMessages$observeLocalMessagesForChannel$2.INSTANCE)));
m.checkNotNullExpressionValue(g02, "localMessagesHolder\n …messages1 === messages2 }");
return g02;
Observable<R> F = this.localMessagesHolder.getMessagesPublisher().F(new StoreMessages$observeLocalMessagesForChannel$1(j));
m.checkNotNullExpressionValue(F, "localMessagesHolder\n …annelId] ?: emptyList() }");
Observable<List<Message>> r2 = ObservableExtensionsKt.computationBuffered(F).r(StoreMessages$observeLocalMessagesForChannel$2.INSTANCE);
m.checkNotNullExpressionValue(r2, "localMessagesHolder\n …messages1 === messages2 }");
return r2;
}
private final Observable<List<Message>> observeSyncedMessagesForChannel(long j) {
Observable<R> E = this.holder.getMessagesPublisher().E(new StoreMessages$observeSyncedMessagesForChannel$1(j));
m.checkNotNullExpressionValue(E, "holder\n .messag…annelId] ?: emptyList() }");
Observable computationBuffered = ObservableExtensionsKt.computationBuffered(E);
Observable<List<Message>> g02 = Observable.g0(new r(computationBuffered.i, new u0(StoreMessages$observeSyncedMessagesForChannel$2.INSTANCE)));
m.checkNotNullExpressionValue(g02, "holder\n .messag…messages1 === messages2 }");
return g02;
Observable<R> F = this.holder.getMessagesPublisher().F(new StoreMessages$observeSyncedMessagesForChannel$1(j));
m.checkNotNullExpressionValue(F, "holder\n .messag…annelId] ?: emptyList() }");
Observable<List<Message>> r2 = ObservableExtensionsKt.computationBuffered(F).r(StoreMessages$observeSyncedMessagesForChannel$2.INSTANCE);
m.checkNotNullExpressionValue(r2, "holder\n .messag…messages1 === messages2 }");
return r2;
}
@StoreThread
@ -265,10 +262,10 @@ public final class StoreMessages extends Store {
for (Message message : arrayList) {
arrayList2.add(resendMessage(message, true));
}
Observable g02 = Observable.g0(new q(arrayList2));
Observable g03 = Observable.g0(new r(g02.i, x0.a.a));
m.checkNotNullExpressionValue(g03, "Observable\n .mergeDelayError(observables)");
ObservableExtensionsKt.appSubscribe$default(g03, StoreMessages.class, (Context) null, (Function1) null, (Function1) null, new StoreMessages$resendAllLocalMessages$1(this), (Function0) null, StoreMessages$resendAllLocalMessages$2.INSTANCE, 46, (Object) null);
Observable h02 = Observable.h0(new q(arrayList2));
Observable h03 = Observable.h0(new r(h02.i, x0.a.a));
m.checkNotNullExpressionValue(h03, "Observable\n .mergeDelayError(observables)");
ObservableExtensionsKt.appSubscribe$default(h03, StoreMessages.class, (Context) null, (Function1) null, (Function1) null, new StoreMessages$resendAllLocalMessages$1(this), (Function0) null, StoreMessages$resendAllLocalMessages$2.INSTANCE, 46, (Object) null);
}
public static /* synthetic */ Observable resendMessage$default(StoreMessages storeMessages, Message message, boolean z2, int i, Object obj) {
@ -568,7 +565,7 @@ public final class StoreMessages extends Store {
}
public final Observable<Boolean> observeIsDetached(long j) {
Observable<Boolean> q = getAllDetached().E(new StoreMessages$observeIsDetached$1(j)).q();
Observable<Boolean> q = getAllDetached().F(new StoreMessages$observeIsDetached$1(j)).q();
m.checkNotNullExpressionValue(q, "allDetached\n .m… .distinctUntilChanged()");
return q;
}
@ -580,7 +577,7 @@ public final class StoreMessages extends Store {
}
public final Observable<Message> observeMessagesForChannel(long j, long j2) {
Observable<Message> q = observeMessagesForChannel(j).E(new StoreMessages$observeMessagesForChannel$2(j2)).q();
Observable<Message> q = observeMessagesForChannel(j).F(new StoreMessages$observeMessagesForChannel$2(j2)).q();
m.checkNotNullExpressionValue(q, "observeMessagesForChanne… .distinctUntilChanged()");
return q;
}

View File

@ -47,7 +47,7 @@ public class StoreMessagesHolder {
private final Subject<Set<Long>, Set<Long>> detachedChannelsSubject;
private final Map<String, Long> messageNonceIds = new HashMap();
private final LinkedHashMap<Long, TreeMap<Long, Message>> messages = new LinkedHashMap<>();
private final Subject<Map<Long, List<Message>>, Map<Long, List<Message>>> messagesPublisher = new SerializedSubject(BehaviorSubject.j0());
private final Subject<Map<Long, List<Message>>, Map<Long, List<Message>>> messagesPublisher = new SerializedSubject(BehaviorSubject.k0());
private Map<Long, List<Message>> messagesSnapshot = Collections.emptyMap();
private long myUserId;
private long selectedChannelId;
@ -57,7 +57,7 @@ public class StoreMessagesHolder {
public StoreMessagesHolder() {
HashSet hashSet = new HashSet();
this.detachedChannels = hashSet;
this.detachedChannelsSubject = new SerializedSubject(BehaviorSubject.k0(new HashSet(hashSet)));
this.detachedChannelsSubject = new SerializedSubject(BehaviorSubject.l0(new HashSet(hashSet)));
}
private static Message addReaction(Message message, MessageReactionEmoji messageReactionEmoji, boolean z2) {
@ -129,7 +129,7 @@ public class StoreMessagesHolder {
if (subscription != null) {
subscription.unsubscribe();
}
this.cachePersistSubscription = new j(null).p(j2, TimeUnit.MILLISECONDS).V(new b(this), a.i);
this.cachePersistSubscription = new j(null).p(j2, TimeUnit.MILLISECONDS).W(new b(this), a.i);
}
}
}

View File

@ -20,8 +20,8 @@ public final class StoreMessagesLoader$jumpToMessage$6<T, R> implements b<Boolea
public final Observable<? extends Channel> call(Boolean bool) {
m.checkNotNullExpressionValue(bool, "isConnected");
int i = bool.booleanValue() ? 1 : 3;
Observable<R> E = StoreMessagesLoader.access$getStream$p(this.this$0).getChannels$app_productionBetaRelease().observeChannel(this.$channelId).w(ObservableExtensionsKt$filterNull$1.INSTANCE).E(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(E, "filter { it != null }.map { it!! }");
return ObservableExtensionsKt.takeSingleUntilTimeout$default(E, 1000 * ((long) i), false, 2, null);
Observable<R> F = StoreMessagesLoader.access$getStream$p(this.this$0).getChannels$app_productionBetaRelease().observeChannel(this.$channelId).x(ObservableExtensionsKt$filterNull$1.INSTANCE).F(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(F, "filter { it != null }.map { it!! }");
return ObservableExtensionsKt.takeSingleUntilTimeout$default(F, 1000 * ((long) i), false, 2, null);
}
}

Some files were not shown because too many files have changed in this diff Show More