package com.discord.stores; import com.airbnb.lottie.parser.AnimatableValueParser; import com.discord.api.channel.Channel; import com.discord.stores.StoreMessageAck; import com.discord.stores.StoreThreadsActiveJoined; import d0.z.d.m; import j0.k.b; import j0.l.e.j; import java.util.Map; import rx.Observable; /* compiled from: StoreMessageAck.kt */ public final class StoreMessageAck$observeThreadState$1 implements b> { public final /* synthetic */ long $channelId; public final /* synthetic */ StoreMessageAck this$0; /* compiled from: StoreMessageAck.kt */ /* renamed from: com.discord.stores.StoreMessageAck$observeThreadState$1$1 reason: invalid class name */ public static final class AnonymousClass1 implements b, StoreMessageAck.ThreadState.Thread> { public final /* synthetic */ StoreMessageAck$observeThreadState$1 this$0; public AnonymousClass1(StoreMessageAck$observeThreadState$1 storeMessageAck$observeThreadState$1) { this.this$0 = storeMessageAck$observeThreadState$1; } public final StoreMessageAck.ThreadState.Thread call(Map map) { m.checkNotNullExpressionValue(map, "activeJoinedThreads"); return new StoreMessageAck.ThreadState.Thread(map.containsKey(Long.valueOf(this.this$0.$channelId))); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // j0.k.b public /* bridge */ /* synthetic */ StoreMessageAck.ThreadState.Thread call(Map map) { return call((Map) map); } } public StoreMessageAck$observeThreadState$1(StoreMessageAck storeMessageAck, long j) { this.this$0 = storeMessageAck; this.$channelId = j; } public final Observable call(Channel channel) { return (channel == null || !AnimatableValueParser.z1(channel)) ? new j(StoreMessageAck.ThreadState.NotThread.INSTANCE) : StoreMessageAck.access$getStream$p(this.this$0).getThreadsActiveJoined$app_productionBetaRelease().observeAllActiveJoinedThreadsById().F(new AnonymousClass1(this)); } }