105 lines
5.1 KiB
Java
105 lines
5.1 KiB
Java
package com.discord.stores;
|
|
|
|
import android.content.Context;
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import c.d.b.a.a;
|
|
import com.discord.app.AppLog;
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.stores.StoreLurking;
|
|
import com.discord.stores.StoreNavigation;
|
|
import com.discord.widgets.chat.input.MentionUtilsKt;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function3;
|
|
/* compiled from: StoreLurking.kt */
|
|
public final class StoreLurking$startLurkingAndNavigate$1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ Long $channelId;
|
|
public final /* synthetic */ Context $context;
|
|
public final /* synthetic */ long $guildId;
|
|
public final /* synthetic */ StoreLurking this$0;
|
|
|
|
/* compiled from: StoreLurking.kt */
|
|
/* renamed from: com.discord.stores.StoreLurking$startLurkingAndNavigate$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function3<Guild, Long, Boolean, Unit> {
|
|
public final /* synthetic */ StoreLurking$startLurkingAndNavigate$1 this$0;
|
|
|
|
/* compiled from: StoreLurking.kt */
|
|
/* renamed from: com.discord.stores.StoreLurking$startLurkingAndNavigate$1$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<FragmentActivity, Boolean> {
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
public AnonymousClass1() {
|
|
super(1);
|
|
}
|
|
|
|
/* 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 // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Boolean invoke(FragmentActivity fragmentActivity) {
|
|
return Boolean.valueOf(invoke(fragmentActivity));
|
|
}
|
|
|
|
public final boolean invoke(FragmentActivity fragmentActivity) {
|
|
m.checkNotNullParameter(fragmentActivity, "it");
|
|
StoreNavigation.setNavigationPanelAction$default(StoreStream.Companion.getNavigation(), StoreNavigation.PanelAction.OPEN, null, 2, null);
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(StoreLurking$startLurkingAndNavigate$1 storeLurking$startLurkingAndNavigate$1) {
|
|
super(3);
|
|
this.this$0 = storeLurking$startLurkingAndNavigate$1;
|
|
}
|
|
|
|
/* 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, java.lang.Object, java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function3
|
|
public /* bridge */ /* synthetic */ Unit invoke(Guild guild, Long l, Boolean bool) {
|
|
invoke(guild, l, bool.booleanValue());
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Guild guild, Long l, boolean z2) {
|
|
m.checkNotNullParameter(guild, "guild");
|
|
StoreLurking$startLurkingAndNavigate$1$1$jumpToDestination$1 storeLurking$startLurkingAndNavigate$1$1$jumpToDestination$1 = new StoreLurking$startLurkingAndNavigate$1$1$jumpToDestination$1(this, l);
|
|
if (z2) {
|
|
storeLurking$startLurkingAndNavigate$1$1$jumpToDestination$1.mo1invoke();
|
|
} else if (!z2) {
|
|
storeLurking$startLurkingAndNavigate$1$1$jumpToDestination$1.mo1invoke();
|
|
StoreLurking.access$getStream$p(this.this$0.this$0).handleGuildJoined(this.this$0.$guildId, guild.getWelcomeScreen());
|
|
StoreNavigation navigation = StoreStream.Companion.getNavigation();
|
|
StringBuilder O = a.O("LURK:");
|
|
O.append(this.this$0.$guildId);
|
|
navigation.launchNotice(O.toString(), AnonymousClass1.INSTANCE);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreLurking$startLurkingAndNavigate$1(StoreLurking storeLurking, long j, Long l, Context context) {
|
|
super(0);
|
|
this.this$0 = storeLurking;
|
|
this.$guildId = j;
|
|
this.$channelId = l;
|
|
this.$context = context;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
if (StoreLurking.access$getSessionId$p(this.this$0) != null) {
|
|
StoreLurking.startLurkingInternal$default(this.this$0, this.$guildId, this.$channelId, false, new AnonymousClass1(this), null, this.$context, 20, null);
|
|
return;
|
|
}
|
|
StringBuilder O = a.O("Queue lurk request: ");
|
|
O.append(this.$guildId);
|
|
O.append(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR);
|
|
O.append(this.$channelId);
|
|
AppLog.i(O.toString());
|
|
StoreLurking.access$setLurkRequest$p(this.this$0, new StoreLurking.LurkRequest(this.$guildId, this.$channelId));
|
|
}
|
|
}
|