105.6 - Alpha (105206)

This commit is contained in:
Juby210 2021-12-03 08:10:56 +01:00
parent 6321129625
commit 225867ac4a
190 changed files with 8039 additions and 7454 deletions

View File

@ -10,8 +10,8 @@ android {
applicationId 'com.discord'
minSdkVersion 21
targetSdkVersion 30
versionCode 105205
versionName "105.5 - Alpha"
versionCode 105206
versionName "105.6 - Alpha"
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="105205" android:versionName="105.5 - Alpha" 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="105206" android:versionName="105.6 - Alpha" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>

View File

@ -24,6 +24,8 @@ import com.discord.api.friendsuggestions.FriendSuggestionReasonType;
import com.discord.api.friendsuggestions.FriendSuggestionReasonTypeAdapter;
import com.discord.api.guild.GuildExplicitContentFilter;
import com.discord.api.guild.GuildExplicitContentFilterTypeAdapter;
import com.discord.api.guild.GuildHubType;
import com.discord.api.guild.GuildHubTypeTypeAdapter;
import com.discord.api.guild.GuildMaxVideoChannelUsers;
import com.discord.api.guild.GuildMaxVideoChannelUsersTypeAdapter;
import com.discord.api.guild.GuildVerificationLevel;
@ -76,7 +78,7 @@ import java.util.Map;
import kotlin.jvm.functions.Function0;
/* compiled from: TypeAdapterRegistrar.kt */
public final class a {
public static final Map<Class<? extends Object>, Function0<Object>> a = h0.mapOf(o.to(ActivityPlatform.class, b.j), o.to(ActivityType.class, C0023a.D), o.to(ApplicationStatus.class, C0023a.I), o.to(UtcDateTime.class, C0023a.J), o.to(NsfwAllowance.class, C0023a.K), o.to(PremiumTier.class, C0023a.L), o.to(ActivityType.class, C0023a.M), o.to(Phone.class, C0023a.N), o.to(ApplicationCommandType.class, C0023a.O), o.to(OAuthScope.class, C0023a.j), o.to(GuildVerificationLevel.class, C0023a.k), o.to(GuildExplicitContentFilter.class, C0023a.l), o.to(GuildMaxVideoChannelUsers.class, C0023a.m), o.to(ComponentType.class, C0023a.n), o.to(ButtonStyle.class, C0023a.o), o.to(ReportNodeChild.class, C0023a.p), o.to(ReportNodeElementData.class, C0023a.q), o.to(ReportNodeBottomButton.class, C0023a.r), o.to(ApplicationCommandPermissionType.class, C0023a.f41s), o.to(StageInstancePrivacyLevel.class, C0023a.t), o.to(FriendSuggestionReasonType.class, C0023a.u), o.to(AllowedInSuggestionsType.class, C0023a.v), o.to(StickerFormatType.class, C0023a.w), o.to(LocalizedString.class, C0023a.f42x), o.to(MessageActivityType.class, C0023a.f43y), o.to(EmbedType.class, C0023a.f44z), o.to(StickerType.class, C0023a.A), o.to(GuildScheduledEventStatus.class, C0023a.B), o.to(GuildScheduledEventEntityType.class, C0023a.C), o.to(Science.Event.SchemaObject.class, C0023a.E), o.to(GuildRoleSubscriptionBenefitType.class, C0023a.F), o.to(PriceTierType.class, C0023a.G), o.to(ApplicationType.class, C0023a.H));
public static final Map<Class<? extends Object>, Function0<Object>> a = h0.mapOf(o.to(ActivityPlatform.class, b.j), o.to(ActivityType.class, C0023a.D), o.to(ApplicationStatus.class, C0023a.J), o.to(UtcDateTime.class, C0023a.K), o.to(NsfwAllowance.class, C0023a.L), o.to(PremiumTier.class, C0023a.M), o.to(ActivityType.class, C0023a.N), o.to(Phone.class, C0023a.O), o.to(ApplicationCommandType.class, C0023a.P), o.to(OAuthScope.class, C0023a.j), o.to(GuildHubType.class, C0023a.k), o.to(GuildVerificationLevel.class, C0023a.l), o.to(GuildExplicitContentFilter.class, C0023a.m), o.to(GuildMaxVideoChannelUsers.class, C0023a.n), o.to(ComponentType.class, C0023a.o), o.to(ButtonStyle.class, C0023a.p), o.to(ReportNodeChild.class, C0023a.q), o.to(ReportNodeElementData.class, C0023a.r), o.to(ReportNodeBottomButton.class, C0023a.f41s), o.to(ApplicationCommandPermissionType.class, C0023a.t), o.to(StageInstancePrivacyLevel.class, C0023a.u), o.to(FriendSuggestionReasonType.class, C0023a.v), o.to(AllowedInSuggestionsType.class, C0023a.w), o.to(StickerFormatType.class, C0023a.f42x), o.to(LocalizedString.class, C0023a.f43y), o.to(MessageActivityType.class, C0023a.f44z), o.to(EmbedType.class, C0023a.A), o.to(StickerType.class, C0023a.B), o.to(GuildScheduledEventStatus.class, C0023a.C), o.to(GuildScheduledEventEntityType.class, C0023a.E), o.to(Science.Event.SchemaObject.class, C0023a.F), o.to(GuildRoleSubscriptionBenefitType.class, C0023a.G), o.to(PriceTierType.class, C0023a.H), o.to(ApplicationType.class, C0023a.I));
public static final List<c.i.d.o> b = n.listOf((Object[]) new c.i.d.o[]{ComponentRuntimeTypeAdapter.INSTANCE.a(), new NullSerializableTypeAdapterFactory()});
/* compiled from: kotlin-style lambda group */
@ -97,6 +99,7 @@ public final class a {
public static final C0023a M = new C0023a(29);
public static final C0023a N = new C0023a(30);
public static final C0023a O = new C0023a(31);
public static final C0023a P = new C0023a(32);
public static final C0023a j = new C0023a(0);
public static final C0023a k = new C0023a(1);
public static final C0023a l = new C0023a(2);
@ -122,81 +125,83 @@ public final class a {
/* renamed from: z reason: collision with root package name */
public static final C0023a f44z = new C0023a(16);
public final /* synthetic */ int P;
public final /* synthetic */ int Q;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0023a(int i) {
super(0);
this.P = i;
this.Q = i;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final Object mo1invoke() {
switch (this.P) {
switch (this.Q) {
case 0:
return new OAuthScopeTypeAdapter();
case 1:
return new GuildVerificationLevelTypeAdapter();
return new GuildHubTypeTypeAdapter();
case 2:
return new GuildExplicitContentFilterTypeAdapter();
return new GuildVerificationLevelTypeAdapter();
case 3:
return new GuildMaxVideoChannelUsersTypeAdapter();
return new GuildExplicitContentFilterTypeAdapter();
case 4:
return new ComponentTypeTypeAdapter();
return new GuildMaxVideoChannelUsersTypeAdapter();
case 5:
return new ButtonStyleTypeAdapter();
return new ComponentTypeTypeAdapter();
case 6:
return new ReportNodeChildTypeAdapter();
return new ButtonStyleTypeAdapter();
case 7:
return new ReportNodeElementDataTypeAdapter();
return new ReportNodeChildTypeAdapter();
case 8:
return new ReportNodeBottomButtonTypeAdapter();
return new ReportNodeElementDataTypeAdapter();
case 9:
return new ApplicationCommandPermissionTypeTypeAdapter();
return new ReportNodeBottomButtonTypeAdapter();
case 10:
return new StageInstancePrivacyLevelTypeAdapter();
return new ApplicationCommandPermissionTypeTypeAdapter();
case 11:
return new FriendSuggestionReasonTypeAdapter();
return new StageInstancePrivacyLevelTypeAdapter();
case 12:
return new AllowedInSuggestionsTypeAdapter();
return new FriendSuggestionReasonTypeAdapter();
case 13:
return new StickerFormatTypeTypeAdapter();
return new AllowedInSuggestionsTypeAdapter();
case 14:
return new LocalizedStringTypeAdapter();
return new StickerFormatTypeTypeAdapter();
case 15:
return new MessageActivityTypeTypeAdapter();
return new LocalizedStringTypeAdapter();
case 16:
return new EmbedTypeTypeAdapter();
return new MessageActivityTypeTypeAdapter();
case 17:
return new StickerTypeTypeAdapter();
return new EmbedTypeTypeAdapter();
case 18:
return new GuildScheduledEventStatusTypeAdapter();
return new StickerTypeTypeAdapter();
case 19:
return new GuildScheduledEventEntityTypeTypeAdapter();
return new GuildScheduledEventStatusTypeAdapter();
case 20:
return new ActivityTypeTypeAdapter();
case 21:
return new AnalyticsSchemaTypeAdapter();
return new GuildScheduledEventEntityTypeTypeAdapter();
case 22:
return new GuildRoleSubscriptionBenefitTypeAdapter();
return new AnalyticsSchemaTypeAdapter();
case 23:
return new PriceTierTypeAdapter();
return new GuildRoleSubscriptionBenefitTypeAdapter();
case 24:
return new ApplicationTypeAdapter();
return new PriceTierTypeAdapter();
case 25:
return new ApplicationStatusTypeAdapter();
return new ApplicationTypeAdapter();
case 26:
return new UtcDateTimeTypeAdapter();
return new ApplicationStatusTypeAdapter();
case 27:
return new NsfwAllowanceTypeAdapter();
return new UtcDateTimeTypeAdapter();
case 28:
return new PremiumTierTypeAdapter();
return new NsfwAllowanceTypeAdapter();
case 29:
return new ActivityTypeTypeAdapter();
return new PremiumTierTypeAdapter();
case 30:
return new PhoneTypeAdapter();
return new ActivityTypeTypeAdapter();
case 31:
return new PhoneTypeAdapter();
case 32:
return new CommandTypeAdapter();
default:
throw null;

View File

@ -0,0 +1,67 @@
package com.discord.api.directory;
import c.d.b.a.a;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.api.utcdatetime.UtcDateTime;
import d0.z.d.m;
/* compiled from: DirectoryEntryGuild.kt */
public final class DirectoryEntryEvent {
private final long authorId;
private final UtcDateTime createdAt;
private final String description;
private final long directoryChannelId;
private final long entityId;
private final GuildScheduledEvent guildScheduledEvent;
private final int primaryCategoryId;
public final GuildScheduledEvent a() {
return this.guildScheduledEvent;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof DirectoryEntryEvent)) {
return false;
}
DirectoryEntryEvent directoryEntryEvent = (DirectoryEntryEvent) obj;
return this.directoryChannelId == directoryEntryEvent.directoryChannelId && this.entityId == directoryEntryEvent.entityId && this.authorId == directoryEntryEvent.authorId && m.areEqual(this.description, directoryEntryEvent.description) && this.primaryCategoryId == directoryEntryEvent.primaryCategoryId && m.areEqual(this.createdAt, directoryEntryEvent.createdAt) && m.areEqual(this.guildScheduledEvent, directoryEntryEvent.guildScheduledEvent);
}
public int hashCode() {
long j = this.directoryChannelId;
long j2 = this.entityId;
long j3 = this.authorId;
int i = ((((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31;
String str = this.description;
int i2 = 0;
int hashCode = (((i + (str != null ? str.hashCode() : 0)) * 31) + this.primaryCategoryId) * 31;
UtcDateTime utcDateTime = this.createdAt;
int hashCode2 = (hashCode + (utcDateTime != null ? utcDateTime.hashCode() : 0)) * 31;
GuildScheduledEvent guildScheduledEvent = this.guildScheduledEvent;
if (guildScheduledEvent != null) {
i2 = guildScheduledEvent.hashCode();
}
return hashCode2 + i2;
}
public String toString() {
StringBuilder R = a.R("DirectoryEntryEvent(directoryChannelId=");
R.append(this.directoryChannelId);
R.append(", entityId=");
R.append(this.entityId);
R.append(", authorId=");
R.append(this.authorId);
R.append(", description=");
R.append(this.description);
R.append(", primaryCategoryId=");
R.append(this.primaryCategoryId);
R.append(", createdAt=");
R.append(this.createdAt);
R.append(", guildScheduledEvent=");
R.append(this.guildScheduledEvent);
R.append(")");
return R.toString();
}
}

View File

@ -4,8 +4,8 @@ import c.d.b.a.a;
import com.discord.api.guild.preview.GuildPreview;
import com.discord.api.utcdatetime.UtcDateTime;
import d0.z.d.m;
/* compiled from: DirectoryEntry.kt */
public final class DirectoryEntry {
/* compiled from: DirectoryEntryGuild.kt */
public final class DirectoryEntryGuild {
private final long authorId;
private final UtcDateTime createdAt;
private final String description;
@ -13,7 +13,6 @@ public final class DirectoryEntry {
private final long entityId;
private final GuildPreview guild;
private final int primaryCategoryId;
private final int type;
public final UtcDateTime a() {
return this.createdAt;
@ -39,11 +38,11 @@ public final class DirectoryEntry {
if (this == obj) {
return true;
}
if (!(obj instanceof DirectoryEntry)) {
if (!(obj instanceof DirectoryEntryGuild)) {
return false;
}
DirectoryEntry directoryEntry = (DirectoryEntry) obj;
return this.directoryChannelId == directoryEntry.directoryChannelId && this.entityId == directoryEntry.entityId && this.type == directoryEntry.type && this.authorId == directoryEntry.authorId && m.areEqual(this.description, directoryEntry.description) && this.primaryCategoryId == directoryEntry.primaryCategoryId && m.areEqual(this.guild, directoryEntry.guild) && m.areEqual(this.createdAt, directoryEntry.createdAt);
DirectoryEntryGuild directoryEntryGuild = (DirectoryEntryGuild) obj;
return this.directoryChannelId == directoryEntryGuild.directoryChannelId && this.entityId == directoryEntryGuild.entityId && this.authorId == directoryEntryGuild.authorId && m.areEqual(this.description, directoryEntryGuild.description) && this.primaryCategoryId == directoryEntryGuild.primaryCategoryId && m.areEqual(this.guild, directoryEntryGuild.guild) && m.areEqual(this.createdAt, directoryEntryGuild.createdAt);
}
public final int f() {
@ -54,7 +53,7 @@ public final class DirectoryEntry {
long j = this.directoryChannelId;
long j2 = this.entityId;
long j3 = this.authorId;
int i = ((((((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + this.type) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31;
int i = ((((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31;
String str = this.description;
int i2 = 0;
int hashCode = (((i + (str != null ? str.hashCode() : 0)) * 31) + this.primaryCategoryId) * 31;
@ -68,12 +67,10 @@ public final class DirectoryEntry {
}
public String toString() {
StringBuilder R = a.R("DirectoryEntry(directoryChannelId=");
StringBuilder R = a.R("DirectoryEntryGuild(directoryChannelId=");
R.append(this.directoryChannelId);
R.append(", entityId=");
R.append(this.entityId);
R.append(", type=");
R.append(this.type);
R.append(", authorId=");
R.append(this.authorId);
R.append(", description=");

View File

@ -0,0 +1,16 @@
package com.discord.api.directory;
/* compiled from: DirectoryEntryGuild.kt */
public enum DirectoryEntryType {
Guild(0),
GuildScheduledEvent(1);
private final int key;
private DirectoryEntryType(int i) {
this.key = i;
}
public final int getKey() {
return this.key;
}
}

View File

@ -35,6 +35,7 @@ public final class Guild {
private final List<GuildFeature> features;
private final GuildHashes guildHashes;
private final List<GuildScheduledEvent> guildScheduledEvents;
private final GuildHubType hubType;
private final String icon;
/* renamed from: id reason: collision with root package name */
@ -70,7 +71,7 @@ public final class Guild {
/* JADX DEBUG: Multi-variable search result rejected for r29v0, resolved type: java.util.List<? extends com.discord.api.guild.GuildFeature> */
/* JADX WARN: Multi-variable type inference failed */
public Guild(List<GuildRole> list, List<GuildEmoji> list2, List<Sticker> list3, String str, String str2, Integer num, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, List<Presence> list4, List<Channel> list5, List<GuildMember> list6, List<VoiceState> list7, boolean z2, int i, int i2, Long l, Long l2, List<? extends GuildFeature> list8, int i3, String str5, String str6, int i4, int i5, int i6, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i7, int i8, Integer num2, GuildHashes guildHashes, List<Channel> list9, List<Channel> list10, boolean z3, List<StageInstance> list11, List<GuildScheduledEvent> list12, List<EmbeddedActivityInGuild> list13) {
public Guild(List<GuildRole> list, List<GuildEmoji> list2, List<Sticker> list3, String str, String str2, Integer num, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, List<Presence> list4, List<Channel> list5, List<GuildMember> list6, List<VoiceState> list7, boolean z2, int i, int i2, Long l, Long l2, List<? extends GuildFeature> list8, int i3, String str5, String str6, int i4, int i5, int i6, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i7, int i8, Integer num2, GuildHashes guildHashes, List<Channel> list9, List<Channel> list10, boolean z3, List<StageInstance> list11, List<GuildScheduledEvent> list12, List<EmbeddedActivityInGuild> list13, GuildHubType guildHubType) {
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME);
m.checkNotNullParameter(list8, "features");
this.roles = list;
@ -118,9 +119,10 @@ public final class Guild {
this.stageInstances = list11;
this.guildScheduledEvents = list12;
this.embeddedActivities = list13;
this.hubType = guildHubType;
}
public static Guild a(Guild guild, List list, List list2, List list3, String str, String str2, Integer num, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, List list4, List list5, List list6, List list7, boolean z2, int i, int i2, Long l, Long l2, List list8, int i3, String str5, String str6, int i4, int i5, int i6, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i7, int i8, Integer num2, GuildHashes guildHashes, List list9, List list10, boolean z3, List list11, List list12, List list13, int i9, int i10) {
public static Guild a(Guild guild, List list, List list2, List list3, String str, String str2, Integer num, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, List list4, List list5, List list6, List list7, boolean z2, int i, int i2, Long l, Long l2, List list8, int i3, String str5, String str6, int i4, int i5, int i6, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i7, int i8, Integer num2, GuildHashes guildHashes, List list9, List list10, boolean z3, List list11, List list12, List list13, GuildHubType guildHubType, int i9, int i10) {
List list14 = (i9 & 1) != 0 ? guild.roles : list;
List list15 = (i9 & 2) != 0 ? guild.emojis : list2;
List list16 = (i9 & 4) != 0 ? guild.stickers : list3;
@ -136,14 +138,14 @@ public final class Guild {
List list17 = (i9 & 4096) != 0 ? guild.presences : list4;
List list18 = (i9 & 8192) != 0 ? guild.channels : list5;
List list19 = (i9 & 16384) != 0 ? guild.members : list6;
List<EmbeddedActivityInGuild> list20 = null;
List<VoiceState> list21 = (i9 & 32768) != 0 ? guild.voiceStates : null;
GuildHubType guildHubType2 = null;
List<VoiceState> list20 = (i9 & 32768) != 0 ? guild.voiceStates : null;
boolean z4 = (i9 & 65536) != 0 ? guild.unavailable : z2;
int i11 = (i9 & 131072) != 0 ? guild.mfaLevel : i;
int i12 = (i9 & 262144) != 0 ? guild.afkTimeout : i2;
Long l5 = (i9 & 524288) != 0 ? guild.afkChannelId : l;
Long l6 = (i9 & 1048576) != 0 ? guild.systemChannelId : l2;
List list22 = (i9 & 2097152) != 0 ? guild.features : list8;
List list21 = (i9 & 2097152) != 0 ? guild.features : list8;
int i13 = (i9 & 4194304) != 0 ? guild.memberCount : i3;
String str14 = (i9 & 8388608) != 0 ? guild.banner : str5;
String str15 = (i9 & 16777216) != 0 ? guild.splash : str6;
@ -161,89 +163,94 @@ public final class Guild {
int i18 = (i10 & 16) != 0 ? guild.approximatePresenceCount : i8;
Integer num4 = (i10 & 32) != 0 ? guild.permissions : null;
GuildHashes guildHashes2 = (i10 & 64) != 0 ? guild.guildHashes : null;
List<Channel> list23 = (i10 & 128) != 0 ? guild.channelUpdates : null;
List<Channel> list24 = (i10 & 256) != 0 ? guild.threads : null;
List<Channel> list22 = (i10 & 128) != 0 ? guild.channelUpdates : null;
List<Channel> list23 = (i10 & 256) != 0 ? guild.threads : null;
boolean z5 = (i10 & 512) != 0 ? guild.nsfw : z3;
List<StageInstance> list25 = (i10 & 1024) != 0 ? guild.stageInstances : null;
List<GuildScheduledEvent> list26 = (i10 & 2048) != 0 ? guild.guildScheduledEvents : null;
if ((i10 & 4096) != 0) {
list20 = guild.embeddedActivities;
List<StageInstance> list24 = (i10 & 1024) != 0 ? guild.stageInstances : null;
List<GuildScheduledEvent> list25 = (i10 & 2048) != 0 ? guild.guildScheduledEvents : null;
List<EmbeddedActivityInGuild> list26 = (i10 & 4096) != 0 ? guild.embeddedActivities : null;
if ((i10 & 8192) != 0) {
guildHubType2 = guild.hubType;
}
Objects.requireNonNull(guild);
m.checkNotNullParameter(str10, ModelAuditLogEntry.CHANGE_KEY_NAME);
m.checkNotNullParameter(list22, "features");
return new Guild(list14, list15, list16, str10, str11, num3, j3, str12, j4, str13, guildVerificationLevel2, guildExplicitContentFilter2, list17, list18, list19, list21, z4, i11, i12, l5, l6, list22, i13, str14, str15, i14, i15, i16, str16, l7, l8, str17, guildWelcomeScreen2, guildMaxVideoChannelUsers2, str18, i17, i18, num4, guildHashes2, list23, list24, z5, list25, list26, list20);
m.checkNotNullParameter(list21, "features");
return new Guild(list14, list15, list16, str10, str11, num3, j3, str12, j4, str13, guildVerificationLevel2, guildExplicitContentFilter2, list17, list18, list19, list20, z4, i11, i12, l5, l6, list21, i13, str14, str15, i14, i15, i16, str16, l7, l8, str17, guildWelcomeScreen2, guildMaxVideoChannelUsers2, str18, i17, i18, num4, guildHashes2, list22, list23, z5, list24, list25, list26, guildHubType2);
}
public final int A() {
return this.premiumSubscriptionCount;
public final String A() {
return this.preferredLocale;
}
public final int B() {
return this.premiumSubscriptionCount;
}
public final int C() {
return this.premiumTier;
}
public final List<Presence> C() {
public final List<Presence> D() {
return this.presences;
}
public final Long D() {
public final Long E() {
return this.publicUpdatesChannelId;
}
public final String E() {
public final String F() {
return this.region;
}
public final List<GuildRole> F() {
public final List<GuildRole> G() {
return this.roles;
}
public final Long G() {
public final Long H() {
return this.rulesChannelId;
}
public final String H() {
public final String I() {
return this.splash;
}
public final List<StageInstance> I() {
public final List<StageInstance> J() {
return this.stageInstances;
}
public final List<Sticker> J() {
public final List<Sticker> K() {
return this.stickers;
}
public final int K() {
public final int L() {
return this.systemChannelFlags;
}
public final Long L() {
public final Long M() {
return this.systemChannelId;
}
public final List<Channel> M() {
public final List<Channel> N() {
return this.threads;
}
public final boolean N() {
public final boolean O() {
return this.unavailable;
}
public final String O() {
public final String P() {
return this.vanityUrlCode;
}
public final GuildVerificationLevel P() {
public final GuildVerificationLevel Q() {
return this.verificationLevel;
}
public final List<VoiceState> Q() {
public final List<VoiceState> R() {
return this.voiceStates;
}
public final GuildWelcomeScreen R() {
public final GuildWelcomeScreen S() {
return this.welcomeScreen;
}
@ -271,7 +278,7 @@ public final class Guild {
return false;
}
Guild guild = (Guild) obj;
return m.areEqual(this.roles, guild.roles) && m.areEqual(this.emojis, guild.emojis) && m.areEqual(this.stickers, guild.stickers) && m.areEqual(this.name, guild.name) && m.areEqual(this.description, guild.description) && m.areEqual(this.defaultMessageNotifications, guild.defaultMessageNotifications) && this.f1624id == guild.f1624id && m.areEqual(this.region, guild.region) && this.ownerId == guild.ownerId && m.areEqual(this.icon, guild.icon) && m.areEqual(this.verificationLevel, guild.verificationLevel) && m.areEqual(this.explicitContentFilter, guild.explicitContentFilter) && m.areEqual(this.presences, guild.presences) && m.areEqual(this.channels, guild.channels) && m.areEqual(this.members, guild.members) && m.areEqual(this.voiceStates, guild.voiceStates) && this.unavailable == guild.unavailable && this.mfaLevel == guild.mfaLevel && this.afkTimeout == guild.afkTimeout && m.areEqual(this.afkChannelId, guild.afkChannelId) && m.areEqual(this.systemChannelId, guild.systemChannelId) && m.areEqual(this.features, guild.features) && this.memberCount == guild.memberCount && m.areEqual(this.banner, guild.banner) && m.areEqual(this.splash, guild.splash) && this.premiumTier == guild.premiumTier && this.premiumSubscriptionCount == guild.premiumSubscriptionCount && this.systemChannelFlags == guild.systemChannelFlags && m.areEqual(this.joinedAt, guild.joinedAt) && m.areEqual(this.rulesChannelId, guild.rulesChannelId) && m.areEqual(this.publicUpdatesChannelId, guild.publicUpdatesChannelId) && m.areEqual(this.preferredLocale, guild.preferredLocale) && m.areEqual(this.welcomeScreen, guild.welcomeScreen) && m.areEqual(this.maxVideoChannelUsers, guild.maxVideoChannelUsers) && m.areEqual(this.vanityUrlCode, guild.vanityUrlCode) && this.approximateMemberCount == guild.approximateMemberCount && this.approximatePresenceCount == guild.approximatePresenceCount && m.areEqual(this.permissions, guild.permissions) && m.areEqual(this.guildHashes, guild.guildHashes) && m.areEqual(this.channelUpdates, guild.channelUpdates) && m.areEqual(this.threads, guild.threads) && this.nsfw == guild.nsfw && m.areEqual(this.stageInstances, guild.stageInstances) && m.areEqual(this.guildScheduledEvents, guild.guildScheduledEvents) && m.areEqual(this.embeddedActivities, guild.embeddedActivities);
return m.areEqual(this.roles, guild.roles) && m.areEqual(this.emojis, guild.emojis) && m.areEqual(this.stickers, guild.stickers) && m.areEqual(this.name, guild.name) && m.areEqual(this.description, guild.description) && m.areEqual(this.defaultMessageNotifications, guild.defaultMessageNotifications) && this.f1624id == guild.f1624id && m.areEqual(this.region, guild.region) && this.ownerId == guild.ownerId && m.areEqual(this.icon, guild.icon) && m.areEqual(this.verificationLevel, guild.verificationLevel) && m.areEqual(this.explicitContentFilter, guild.explicitContentFilter) && m.areEqual(this.presences, guild.presences) && m.areEqual(this.channels, guild.channels) && m.areEqual(this.members, guild.members) && m.areEqual(this.voiceStates, guild.voiceStates) && this.unavailable == guild.unavailable && this.mfaLevel == guild.mfaLevel && this.afkTimeout == guild.afkTimeout && m.areEqual(this.afkChannelId, guild.afkChannelId) && m.areEqual(this.systemChannelId, guild.systemChannelId) && m.areEqual(this.features, guild.features) && this.memberCount == guild.memberCount && m.areEqual(this.banner, guild.banner) && m.areEqual(this.splash, guild.splash) && this.premiumTier == guild.premiumTier && this.premiumSubscriptionCount == guild.premiumSubscriptionCount && this.systemChannelFlags == guild.systemChannelFlags && m.areEqual(this.joinedAt, guild.joinedAt) && m.areEqual(this.rulesChannelId, guild.rulesChannelId) && m.areEqual(this.publicUpdatesChannelId, guild.publicUpdatesChannelId) && m.areEqual(this.preferredLocale, guild.preferredLocale) && m.areEqual(this.welcomeScreen, guild.welcomeScreen) && m.areEqual(this.maxVideoChannelUsers, guild.maxVideoChannelUsers) && m.areEqual(this.vanityUrlCode, guild.vanityUrlCode) && this.approximateMemberCount == guild.approximateMemberCount && this.approximatePresenceCount == guild.approximatePresenceCount && m.areEqual(this.permissions, guild.permissions) && m.areEqual(this.guildHashes, guild.guildHashes) && m.areEqual(this.channelUpdates, guild.channelUpdates) && m.areEqual(this.threads, guild.threads) && this.nsfw == guild.nsfw && m.areEqual(this.stageInstances, guild.stageInstances) && m.areEqual(this.guildScheduledEvents, guild.guildScheduledEvents) && m.areEqual(this.embeddedActivities, guild.embeddedActivities) && m.areEqual(this.hubType, guild.hubType);
}
public final List<Channel> f() {
@ -371,10 +378,12 @@ public final class Guild {
List<GuildScheduledEvent> list12 = this.guildScheduledEvents;
int hashCode32 = (hashCode31 + (list12 != null ? list12.hashCode() : 0)) * 31;
List<EmbeddedActivityInGuild> list13 = this.embeddedActivities;
if (list13 != null) {
i = list13.hashCode();
int hashCode33 = (hashCode32 + (list13 != null ? list13.hashCode() : 0)) * 31;
GuildHubType guildHubType = this.hubType;
if (guildHubType != null) {
i = guildHubType.hashCode();
}
return hashCode32 + i;
return hashCode33 + i;
}
public final String i() {
@ -405,26 +414,26 @@ public final class Guild {
return this.guildScheduledEvents;
}
public final String p() {
public final GuildHubType p() {
return this.hubType;
}
public final String q() {
return this.icon;
}
public final long q() {
public final long r() {
return this.f1624id;
}
public final String r() {
public final String s() {
return this.joinedAt;
}
public final GuildMaxVideoChannelUsers s() {
public final GuildMaxVideoChannelUsers t() {
return this.maxVideoChannelUsers;
}
public final int t() {
return this.memberCount;
}
public String toString() {
StringBuilder R = a.R("Guild(roles=");
R.append(this.roles);
@ -515,30 +524,34 @@ public final class Guild {
R.append(", guildScheduledEvents=");
R.append(this.guildScheduledEvents);
R.append(", embeddedActivities=");
return a.J(R, this.embeddedActivities, ")");
R.append(this.embeddedActivities);
R.append(", hubType=");
R.append(this.hubType);
R.append(")");
return R.toString();
}
public final List<GuildMember> u() {
public final int u() {
return this.memberCount;
}
public final List<GuildMember> v() {
return this.members;
}
public final int v() {
public final int w() {
return this.mfaLevel;
}
public final String w() {
public final String x() {
return this.name;
}
public final boolean x() {
public final boolean y() {
return this.nsfw;
}
public final long y() {
public final long z() {
return this.ownerId;
}
public final String z() {
return this.preferredLocale;
}
}

View File

@ -0,0 +1,17 @@
package com.discord.api.guild;
/* compiled from: GuildHubType.kt */
public enum GuildHubType {
DEFAULT(0),
HIGH_SCHOOL(1),
COLLEGE(2);
private final int apiValue;
private GuildHubType(int i) {
this.apiValue = i;
}
public final int getApiValue() {
return this.apiValue;
}
}

View File

@ -0,0 +1,36 @@
package com.discord.api.guild;
import c.c.a.a0.d;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import d0.z.d.m;
/* compiled from: GuildHubType.kt */
public final class GuildHubTypeTypeAdapter extends TypeAdapter<GuildHubType> {
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // com.google.gson.TypeAdapter
public GuildHubType read(JsonReader jsonReader) {
m.checkNotNullParameter(jsonReader, "in");
Integer l1 = d.l1(jsonReader);
GuildHubType[] values = GuildHubType.values();
for (int i = 0; i < 3; i++) {
GuildHubType guildHubType = values[i];
if (l1 != null && guildHubType.getApiValue() == l1.intValue()) {
return guildHubType;
}
}
return null;
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.gson.stream.JsonWriter, java.lang.Object] */
@Override // com.google.gson.TypeAdapter
public void write(JsonWriter jsonWriter, GuildHubType guildHubType) {
GuildHubType guildHubType2 = guildHubType;
m.checkNotNullParameter(jsonWriter, "out");
if (guildHubType2 == null) {
jsonWriter.s();
} else {
jsonWriter.D(Integer.valueOf(guildHubType2.getApiValue()));
}
}
}

View File

@ -45,8 +45,9 @@ import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: App.kt */
public class App extends Application {
public static final boolean j = w.contains$default((CharSequence) BuildConfig.FLAVOR, (CharSequence) "local", false, 2, (Object) null);
public static final a k = new a(null);
public static final a Companion = new a(null);
private static final boolean IS_LOCAL = w.contains$default((CharSequence) BuildConfig.FLAVOR, (CharSequence) "local", false, 2, (Object) null);
private final boolean isUnderTest;
/* compiled from: App.kt */
public static final class a {
@ -157,6 +158,22 @@ public class App extends Application {
}
}
public static final /* synthetic */ boolean access$getIS_LOCAL$cp() {
return IS_LOCAL;
}
public void initializeFlipper() {
m.checkNotNullParameter(this, "context");
}
public void initializeRLottie() {
System.loadLibrary("dsti");
}
public boolean isUnderTest() {
return this.isUnderTest;
}
@Override // android.app.Application
public void onCreate() {
super.onCreate();
@ -191,7 +208,7 @@ public class App extends Application {
}
appLog.recordBreadcrumb(str, "libdiscord_version");
DebugPrintableCollection.Companion.initialize(str);
AdjustConfig.INSTANCE.init(this, false);
AdjustConfig.INSTANCE.init(this, isUnderTest());
c.a.e.d dVar = c.a.e.d.d;
b bVar = b.j;
m.checkNotNullParameter(this, "application");
@ -220,8 +237,8 @@ public class App extends Application {
ModelEmojiCustom.setCdnUri(BuildConfig.HOST_CDN);
SurveyUtils.INSTANCE.init(this);
AppCompatDelegate.setDefaultNightMode(1);
m.checkNotNullParameter(this, "context");
System.loadLibrary("dsti");
initializeFlipper();
initializeRLottie();
Objects.requireNonNull(appLog);
if (FirebaseCrashlytics.getInstance().didCrashOnPreviousExecution()) {
AnalyticsTracker.INSTANCE.appCrashed();

View File

@ -0,0 +1,74 @@
package com.discord.models.experiments.dto;
import com.discord.api.guild.GuildHubType;
import com.discord.models.deserialization.gson.InboundGatewayGsonParser;
import com.discord.models.domain.Model;
import d0.t.u;
import d0.z.d.m;
import java.util.List;
import kotlin.jvm.internal.Ref$ObjectRef;
/* compiled from: GuildExperimentFilter.kt */
public final class GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1 implements Runnable {
public final /* synthetic */ Ref$ObjectRef $hubTypes;
public final /* synthetic */ Model.JsonReader $reader;
/* compiled from: GuildExperimentFilter.kt */
/* renamed from: com.discord.models.experiments.dto.GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1$1 reason: invalid class name */
public static final class AnonymousClass1 implements Runnable {
public final /* synthetic */ GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1 this$0;
public AnonymousClass1(GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1 guildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1) {
this.this$0 = guildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1;
}
@Override // java.lang.Runnable
public final void run() {
this.this$0.$reader.skipValue();
}
}
/* compiled from: GuildExperimentFilter.kt */
/* renamed from: com.discord.models.experiments.dto.GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1$2 reason: invalid class name */
public static final class AnonymousClass2 implements Runnable {
public final /* synthetic */ GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1 this$0;
/* compiled from: GuildExperimentFilter.kt */
/* renamed from: com.discord.models.experiments.dto.GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1$2$1 reason: invalid class name */
public static final class AnonymousClass1<T> implements Model.JsonReader.ItemFactory<GuildHubType> {
public final /* synthetic */ AnonymousClass2 this$0;
public AnonymousClass1(AnonymousClass2 r1) {
this.this$0 = r1;
}
@Override // com.discord.models.domain.Model.JsonReader.ItemFactory
public final GuildHubType get() {
return (GuildHubType) InboundGatewayGsonParser.fromJson(this.this$0.this$0.$reader, GuildHubType.class);
}
}
public AnonymousClass2(GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1 guildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1) {
this.this$0 = guildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1;
}
/* JADX WARNING: Unknown variable types count: 1 */
@Override // java.lang.Runnable
public final void run() {
GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1 guildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1 = this.this$0;
Ref$ObjectRef ref$ObjectRef = guildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1.$hubTypes;
List nextList = guildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1.$reader.nextList(new AnonymousClass1(this));
m.checkNotNullExpressionValue(nextList, "reader.nextList {\n …ass.java)\n }");
ref$ObjectRef.element = u.toSet(nextList);
}
}
public GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1(Model.JsonReader jsonReader, Ref$ObjectRef ref$ObjectRef) {
this.$reader = jsonReader;
this.$hubTypes = ref$ObjectRef;
}
@Override // java.lang.Runnable
public final void run() {
this.$reader.nextListIndexed(new AnonymousClass1(this), new AnonymousClass2(this));
}
}

View File

@ -0,0 +1,18 @@
package com.discord.models.experiments.dto;
import com.discord.models.domain.Model;
import com.discord.models.experiments.dto.GuildExperimentFilter;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.jvm.functions.Function1;
/* compiled from: GuildExperimentFilter.kt */
public final /* synthetic */ class GuildExperimentFilter$Parser$parsers$5 extends k implements Function1<Model.JsonReader, GuildExperimentFilter.GuildHubTypesFeatureFilter> {
public GuildExperimentFilter$Parser$parsers$5(GuildExperimentFilter.Parser parser) {
super(1, parser, GuildExperimentFilter.Parser.class, "parseGuildHubTypesFeatureFilter", "parseGuildHubTypesFeatureFilter(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/experiments/dto/GuildExperimentFilter$GuildHubTypesFeatureFilter;", 0);
}
public final GuildExperimentFilter.GuildHubTypesFeatureFilter invoke(Model.JsonReader jsonReader) {
m.checkNotNullParameter(jsonReader, "p1");
return GuildExperimentFilter.Parser.access$parseGuildHubTypesFeatureFilter((GuildExperimentFilter.Parser) this.receiver, jsonReader);
}
}

View File

@ -3,6 +3,7 @@ package com.discord.models.experiments.dto;
import androidx.recyclerview.widget.RecyclerView;
import c.d.b.a.a;
import com.discord.api.guild.GuildFeature;
import com.discord.api.guild.GuildHubType;
import com.discord.models.domain.Model;
import com.discord.models.experiments.domain.ExperimentHash;
import d0.o;
@ -79,6 +80,64 @@ public abstract class GuildExperimentFilter {
}
}
/* compiled from: GuildExperimentFilter.kt */
public static final class GuildHubTypesFeatureFilter extends GuildExperimentFilter {
private final Set<GuildHubType> hubTypes;
/* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.util.Set<? extends com.discord.api.guild.GuildHubType> */
/* JADX WARN: Multi-variable type inference failed */
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public GuildHubTypesFeatureFilter(Set<? extends GuildHubType> set) {
super(null);
m.checkNotNullParameter(set, "hubTypes");
this.hubTypes = set;
}
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.models.experiments.dto.GuildExperimentFilter$GuildHubTypesFeatureFilter */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ GuildHubTypesFeatureFilter copy$default(GuildHubTypesFeatureFilter guildHubTypesFeatureFilter, Set set, int i, Object obj) {
if ((i & 1) != 0) {
set = guildHubTypesFeatureFilter.hubTypes;
}
return guildHubTypesFeatureFilter.copy(set);
}
public final Set<GuildHubType> component1() {
return this.hubTypes;
}
public final GuildHubTypesFeatureFilter copy(Set<? extends GuildHubType> set) {
m.checkNotNullParameter(set, "hubTypes");
return new GuildHubTypesFeatureFilter(set);
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof GuildHubTypesFeatureFilter) && m.areEqual(this.hubTypes, ((GuildHubTypesFeatureFilter) obj).hubTypes);
}
return true;
}
public final Set<GuildHubType> getHubTypes() {
return this.hubTypes;
}
public int hashCode() {
Set<GuildHubType> set = this.hubTypes;
if (set != null) {
return set.hashCode();
}
return 0;
}
public String toString() {
StringBuilder R = a.R("GuildHubTypesFeatureFilter(hubTypes=");
R.append(this.hubTypes);
R.append(")");
return R.toString();
}
}
/* compiled from: GuildExperimentFilter.kt */
public static final class GuildIdRangeFilter extends GuildExperimentFilter {
private final LongRange range;
@ -254,7 +313,7 @@ public abstract class GuildExperimentFilter {
Parser parser = new Parser();
INSTANCE = parser;
ExperimentHash experimentHash = ExperimentHash.INSTANCE;
parsers = h0.mapOf(o.to(Long.valueOf(experimentHash.from("guild_ids")), new GuildExperimentFilter$Parser$parsers$1(parser)), o.to(Long.valueOf(experimentHash.from("guild_id_range")), new GuildExperimentFilter$Parser$parsers$2(parser)), o.to(Long.valueOf(experimentHash.from("guild_member_count_range")), new GuildExperimentFilter$Parser$parsers$3(parser)), o.to(Long.valueOf(experimentHash.from("guild_has_feature")), new GuildExperimentFilter$Parser$parsers$4(parser)));
parsers = h0.mapOf(o.to(Long.valueOf(experimentHash.from("guild_ids")), new GuildExperimentFilter$Parser$parsers$1(parser)), o.to(Long.valueOf(experimentHash.from("guild_id_range")), new GuildExperimentFilter$Parser$parsers$2(parser)), o.to(Long.valueOf(experimentHash.from("guild_member_count_range")), new GuildExperimentFilter$Parser$parsers$3(parser)), o.to(Long.valueOf(experimentHash.from("guild_has_feature")), new GuildExperimentFilter$Parser$parsers$4(parser)), o.to(Long.valueOf(experimentHash.from("guild_hub_types")), new GuildExperimentFilter$Parser$parsers$5(parser)));
MIN_ID_HASH = experimentHash.from("min_id");
MAX_ID_HASH = experimentHash.from("max_id");
}
@ -274,6 +333,10 @@ public abstract class GuildExperimentFilter {
return parser.parseGuildHasFeatureFilter(jsonReader);
}
public static final /* synthetic */ GuildHubTypesFeatureFilter access$parseGuildHubTypesFeatureFilter(Parser parser, Model.JsonReader jsonReader) {
return parser.parseGuildHubTypesFeatureFilter(jsonReader);
}
public static final /* synthetic */ GuildIdRangeFilter access$parseGuildIdRangeFilter(Parser parser, Model.JsonReader jsonReader) {
return parser.parseGuildIdRangeFilter(jsonReader);
}
@ -294,6 +357,14 @@ public abstract class GuildExperimentFilter {
return new GuildHasFeatureFilter(ref$ObjectRef.element);
}
/* JADX WARNING: Unknown variable types count: 1 */
private final GuildHubTypesFeatureFilter parseGuildHubTypesFeatureFilter(Model.JsonReader jsonReader) {
Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef();
ref$ObjectRef.element = n0.emptySet();
jsonReader.nextListIndexed(new GuildExperimentFilter$Parser$parseGuildHubTypesFeatureFilter$1(jsonReader, ref$ObjectRef));
return new GuildHubTypesFeatureFilter(ref$ObjectRef.element);
}
private final GuildIdRangeFilter parseGuildIdRangeFilter(Model.JsonReader jsonReader) {
return new GuildIdRangeFilter(parseRange(jsonReader));
}

View File

@ -6,6 +6,7 @@ import c.d.b.a.a;
import com.discord.api.emoji.GuildEmoji;
import com.discord.api.guild.GuildExplicitContentFilter;
import com.discord.api.guild.GuildFeature;
import com.discord.api.guild.GuildHubType;
import com.discord.api.guild.GuildMaxVideoChannelUsers;
import com.discord.api.guild.GuildVerificationLevel;
import com.discord.api.guild.welcome.GuildWelcomeScreen;
@ -32,6 +33,7 @@ public final class Guild {
private final List<GuildEmoji> emojis;
private final GuildExplicitContentFilter explicitContentFilter;
private final Set<GuildFeature> features;
private final GuildHubType hubType;
private final String icon;
/* renamed from: id reason: collision with root package name */
@ -61,52 +63,52 @@ public final class Guild {
private final GuildWelcomeScreen welcomeScreen;
public Guild() {
this(null, null, null, null, null, 0, 0, null, 0, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, false, -1, 1, null);
this(null, null, null, null, null, 0, 0, null, 0, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, false, null, -1, 3, null);
}
/* JADX WARNING: Illegal instructions before constructor call */
public Guild(com.discord.api.guild.Guild guild) {
this(r0, r0, null, r6, r7, r0, r9, r11, r12, r14, r0, r0, r17, r18, r19, r20, r21, r22, r23, r24, r25, r26, r27, r28, r29, r30, r31, r32, r33, r0 == null ? GuildMaxVideoChannelUsers.Unlimited.INSTANCE : r0, guild.O(), guild.d(), guild.x(), 4, 0, null);
this(r0, r0, null, r6, r7, r0, r9, r11, r12, r14, r0, r0, r17, r18, r19, r20, r21, r22, r23, r24, r25, r26, r27, r28, r29, r30, r31, r32, r33, r0 == null ? GuildMaxVideoChannelUsers.Unlimited.INSTANCE : r0, guild.P(), guild.d(), guild.y(), guild.p(), 4, 0, null);
m.checkNotNullParameter(guild, "apiGuild");
List<GuildRole> F = guild.F();
F = F == null ? n.emptyList() : F;
List<GuildRole> G = guild.G();
G = G == null ? n.emptyList() : G;
List<GuildEmoji> k = guild.k();
k = k == null ? n.emptyList() : k;
String w = guild.w();
String x2 = guild.x();
String i = guild.i();
Integer h = guild.h();
int intValue = h != null ? h.intValue() : ModelNotificationSettings.FREQUENCY_ALL;
long q = guild.q();
String E = guild.E();
long y2 = guild.y();
String p = guild.p();
GuildVerificationLevel P = guild.P();
P = P == null ? GuildVerificationLevel.NONE : P;
long r = guild.r();
String F = guild.F();
long z2 = guild.z();
String q = guild.q();
GuildVerificationLevel Q = guild.Q();
Q = Q == null ? GuildVerificationLevel.NONE : Q;
GuildExplicitContentFilter l = guild.l();
l = l == null ? GuildExplicitContentFilter.NONE : l;
boolean N = guild.N();
int v = guild.v();
boolean O = guild.O();
int w = guild.w();
int c2 = guild.c();
Long b = guild.b();
Long L = guild.L();
Long M = guild.M();
Set set = u.toSet(guild.m());
int t = guild.t();
int u = guild.u();
String e = guild.e();
String H = guild.H();
String I = guild.I();
int C = guild.C();
int B = guild.B();
int A = guild.A();
int K = guild.K();
String r = guild.r();
Long G = guild.G();
Long D = guild.D();
String z2 = guild.z();
GuildWelcomeScreen R = guild.R();
GuildMaxVideoChannelUsers s2 = guild.s();
int L = guild.L();
String s2 = guild.s();
Long H = guild.H();
Long E = guild.E();
String A = guild.A();
GuildWelcomeScreen S = guild.S();
GuildMaxVideoChannelUsers t = guild.t();
}
/* JADX DEBUG: Multi-variable search result rejected for r30v0, resolved type: java.util.Set<? extends com.discord.api.guild.GuildFeature> */
/* JADX WARN: Multi-variable type inference failed */
public Guild(List<GuildRole> list, List<GuildEmoji> list2, List<Sticker> list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set<? extends GuildFeature> set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3) {
public Guild(List<GuildRole> list, List<GuildEmoji> list2, List<Sticker> list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set<? extends GuildFeature> set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3, GuildHubType guildHubType) {
m.checkNotNullParameter(list, "roles");
m.checkNotNullParameter(list2, "emojis");
m.checkNotNullParameter(list3, "stickers");
@ -148,16 +150,17 @@ public final class Guild {
this.vanityUrlCode = str9;
this.approximatePresenceCount = i8;
this.nsfw = z3;
this.hubType = guildHubType;
this.shortName = GuildUtilsKt.computeShortName(str);
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ Guild(List list, List list2, List list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3, int i9, int i10, DefaultConstructorMarker defaultConstructorMarker) {
this((i9 & 1) != 0 ? n.emptyList() : list, (i9 & 2) != 0 ? n.emptyList() : list2, (i9 & 4) != 0 ? n.emptyList() : list3, (i9 & 8) != 0 ? "" : str, (i9 & 16) != 0 ? null : str2, (i9 & 32) != 0 ? ModelNotificationSettings.FREQUENCY_ALL : i, (i9 & 64) != 0 ? 0 : j, (i9 & 128) != 0 ? null : str3, (i9 & 256) == 0 ? j2 : 0, (i9 & 512) != 0 ? null : str4, (i9 & 1024) != 0 ? GuildVerificationLevel.NONE : guildVerificationLevel, (i9 & 2048) != 0 ? GuildExplicitContentFilter.NONE : guildExplicitContentFilter, (i9 & 4096) != 0 ? false : z2, (i9 & 8192) != 0 ? 0 : i2, (i9 & 16384) != 0 ? 0 : i3, (i9 & 32768) != 0 ? null : l, (i9 & 65536) != 0 ? null : l2, (i9 & 131072) != 0 ? n0.emptySet() : set, (i9 & 262144) != 0 ? 0 : i4, (i9 & 524288) != 0 ? null : str5, (i9 & 1048576) != 0 ? null : str6, (i9 & 2097152) != 0 ? 0 : i5, (i9 & 4194304) != 0 ? 0 : i6, (i9 & 8388608) != 0 ? 0 : i7, (i9 & 16777216) != 0 ? null : str7, (i9 & 33554432) != 0 ? null : l3, (i9 & 67108864) != 0 ? null : l4, (i9 & 134217728) != 0 ? null : str8, (i9 & 268435456) != 0 ? null : guildWelcomeScreen, (i9 & 536870912) != 0 ? GuildMaxVideoChannelUsers.Unlimited.INSTANCE : guildMaxVideoChannelUsers, (i9 & BasicMeasure.EXACTLY) != 0 ? null : str9, (i9 & Integer.MIN_VALUE) != 0 ? 0 : i8, (i10 & 1) == 0 ? z3 : false);
public /* synthetic */ Guild(List list, List list2, List list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3, GuildHubType guildHubType, int i9, int i10, DefaultConstructorMarker defaultConstructorMarker) {
this((i9 & 1) != 0 ? n.emptyList() : list, (i9 & 2) != 0 ? n.emptyList() : list2, (i9 & 4) != 0 ? n.emptyList() : list3, (i9 & 8) != 0 ? "" : str, (i9 & 16) != 0 ? null : str2, (i9 & 32) != 0 ? ModelNotificationSettings.FREQUENCY_ALL : i, (i9 & 64) != 0 ? 0 : j, (i9 & 128) != 0 ? null : str3, (i9 & 256) == 0 ? j2 : 0, (i9 & 512) != 0 ? null : str4, (i9 & 1024) != 0 ? GuildVerificationLevel.NONE : guildVerificationLevel, (i9 & 2048) != 0 ? GuildExplicitContentFilter.NONE : guildExplicitContentFilter, (i9 & 4096) != 0 ? false : z2, (i9 & 8192) != 0 ? 0 : i2, (i9 & 16384) != 0 ? 0 : i3, (i9 & 32768) != 0 ? null : l, (i9 & 65536) != 0 ? null : l2, (i9 & 131072) != 0 ? n0.emptySet() : set, (i9 & 262144) != 0 ? 0 : i4, (i9 & 524288) != 0 ? null : str5, (i9 & 1048576) != 0 ? null : str6, (i9 & 2097152) != 0 ? 0 : i5, (i9 & 4194304) != 0 ? 0 : i6, (i9 & 8388608) != 0 ? 0 : i7, (i9 & 16777216) != 0 ? null : str7, (i9 & 33554432) != 0 ? null : l3, (i9 & 67108864) != 0 ? null : l4, (i9 & 134217728) != 0 ? null : str8, (i9 & 268435456) != 0 ? null : guildWelcomeScreen, (i9 & 536870912) != 0 ? GuildMaxVideoChannelUsers.Unlimited.INSTANCE : guildMaxVideoChannelUsers, (i9 & BasicMeasure.EXACTLY) != 0 ? null : str9, (i9 & Integer.MIN_VALUE) != 0 ? 0 : i8, (i10 & 1) == 0 ? z3 : false, (i10 & 2) != 0 ? null : guildHubType);
}
public static /* synthetic */ Guild copy$default(Guild guild, List list, List list2, List list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3, int i9, int i10, Object obj) {
return guild.copy((i9 & 1) != 0 ? guild.roles : list, (i9 & 2) != 0 ? guild.emojis : list2, (i9 & 4) != 0 ? guild.stickers : list3, (i9 & 8) != 0 ? guild.name : str, (i9 & 16) != 0 ? guild.description : str2, (i9 & 32) != 0 ? guild.defaultMessageNotifications : i, (i9 & 64) != 0 ? guild.f2198id : j, (i9 & 128) != 0 ? guild.region : str3, (i9 & 256) != 0 ? guild.ownerId : j2, (i9 & 512) != 0 ? guild.icon : str4, (i9 & 1024) != 0 ? guild.verificationLevel : guildVerificationLevel, (i9 & 2048) != 0 ? guild.explicitContentFilter : guildExplicitContentFilter, (i9 & 4096) != 0 ? guild.unavailable : z2, (i9 & 8192) != 0 ? guild.mfaLevel : i2, (i9 & 16384) != 0 ? guild.afkTimeout : i3, (i9 & 32768) != 0 ? guild.afkChannelId : l, (i9 & 65536) != 0 ? guild.systemChannelId : l2, (i9 & 131072) != 0 ? guild.features : set, (i9 & 262144) != 0 ? guild.memberCount : i4, (i9 & 524288) != 0 ? guild.banner : str5, (i9 & 1048576) != 0 ? guild.splash : str6, (i9 & 2097152) != 0 ? guild.premiumTier : i5, (i9 & 4194304) != 0 ? guild.premiumSubscriptionCount : i6, (i9 & 8388608) != 0 ? guild.systemChannelFlags : i7, (i9 & 16777216) != 0 ? guild.joinedAt : str7, (i9 & 33554432) != 0 ? guild.rulesChannelId : l3, (i9 & 67108864) != 0 ? guild.publicUpdatesChannelId : l4, (i9 & 134217728) != 0 ? guild.preferredLocale : str8, (i9 & 268435456) != 0 ? guild.welcomeScreen : guildWelcomeScreen, (i9 & 536870912) != 0 ? guild.maxVideoChannelUsers : guildMaxVideoChannelUsers, (i9 & BasicMeasure.EXACTLY) != 0 ? guild.vanityUrlCode : str9, (i9 & Integer.MIN_VALUE) != 0 ? guild.approximatePresenceCount : i8, (i10 & 1) != 0 ? guild.nsfw : z3);
public static /* synthetic */ Guild copy$default(Guild guild, List list, List list2, List list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3, GuildHubType guildHubType, int i9, int i10, Object obj) {
return guild.copy((i9 & 1) != 0 ? guild.roles : list, (i9 & 2) != 0 ? guild.emojis : list2, (i9 & 4) != 0 ? guild.stickers : list3, (i9 & 8) != 0 ? guild.name : str, (i9 & 16) != 0 ? guild.description : str2, (i9 & 32) != 0 ? guild.defaultMessageNotifications : i, (i9 & 64) != 0 ? guild.f2198id : j, (i9 & 128) != 0 ? guild.region : str3, (i9 & 256) != 0 ? guild.ownerId : j2, (i9 & 512) != 0 ? guild.icon : str4, (i9 & 1024) != 0 ? guild.verificationLevel : guildVerificationLevel, (i9 & 2048) != 0 ? guild.explicitContentFilter : guildExplicitContentFilter, (i9 & 4096) != 0 ? guild.unavailable : z2, (i9 & 8192) != 0 ? guild.mfaLevel : i2, (i9 & 16384) != 0 ? guild.afkTimeout : i3, (i9 & 32768) != 0 ? guild.afkChannelId : l, (i9 & 65536) != 0 ? guild.systemChannelId : l2, (i9 & 131072) != 0 ? guild.features : set, (i9 & 262144) != 0 ? guild.memberCount : i4, (i9 & 524288) != 0 ? guild.banner : str5, (i9 & 1048576) != 0 ? guild.splash : str6, (i9 & 2097152) != 0 ? guild.premiumTier : i5, (i9 & 4194304) != 0 ? guild.premiumSubscriptionCount : i6, (i9 & 8388608) != 0 ? guild.systemChannelFlags : i7, (i9 & 16777216) != 0 ? guild.joinedAt : str7, (i9 & 33554432) != 0 ? guild.rulesChannelId : l3, (i9 & 67108864) != 0 ? guild.publicUpdatesChannelId : l4, (i9 & 134217728) != 0 ? guild.preferredLocale : str8, (i9 & 268435456) != 0 ? guild.welcomeScreen : guildWelcomeScreen, (i9 & 536870912) != 0 ? guild.maxVideoChannelUsers : guildMaxVideoChannelUsers, (i9 & BasicMeasure.EXACTLY) != 0 ? guild.vanityUrlCode : str9, (i9 & Integer.MIN_VALUE) != 0 ? guild.approximatePresenceCount : i8, (i10 & 1) != 0 ? guild.nsfw : z3, (i10 & 2) != 0 ? guild.hubType : guildHubType);
}
public final boolean canHaveBanner() {
@ -280,6 +283,10 @@ public final class Guild {
return this.nsfw;
}
public final GuildHubType component34() {
return this.hubType;
}
public final String component4() {
return this.name;
}
@ -304,7 +311,7 @@ public final class Guild {
return this.ownerId;
}
public final Guild copy(List<GuildRole> list, List<GuildEmoji> list2, List<Sticker> list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set<? extends GuildFeature> set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3) {
public final Guild copy(List<GuildRole> list, List<GuildEmoji> list2, List<Sticker> list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set<? extends GuildFeature> set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3, GuildHubType guildHubType) {
m.checkNotNullParameter(list, "roles");
m.checkNotNullParameter(list2, "emojis");
m.checkNotNullParameter(list3, "stickers");
@ -313,7 +320,7 @@ public final class Guild {
m.checkNotNullParameter(guildExplicitContentFilter, "explicitContentFilter");
m.checkNotNullParameter(set, "features");
m.checkNotNullParameter(guildMaxVideoChannelUsers, "maxVideoChannelUsers");
return new Guild(list, list2, list3, str, str2, i, j, str3, j2, str4, guildVerificationLevel, guildExplicitContentFilter, z2, i2, i3, l, l2, set, i4, str5, str6, i5, i6, i7, str7, l3, l4, str8, guildWelcomeScreen, guildMaxVideoChannelUsers, str9, i8, z3);
return new Guild(list, list2, list3, str, str2, i, j, str3, j2, str4, guildVerificationLevel, guildExplicitContentFilter, z2, i2, i3, l, l2, set, i4, str5, str6, i5, i6, i7, str7, l3, l4, str8, guildWelcomeScreen, guildMaxVideoChannelUsers, str9, i8, z3, guildHubType);
}
public boolean equals(Object obj) {
@ -324,7 +331,7 @@ public final class Guild {
return false;
}
Guild guild = (Guild) obj;
return m.areEqual(this.roles, guild.roles) && m.areEqual(this.emojis, guild.emojis) && m.areEqual(this.stickers, guild.stickers) && m.areEqual(this.name, guild.name) && m.areEqual(this.description, guild.description) && this.defaultMessageNotifications == guild.defaultMessageNotifications && this.f2198id == guild.f2198id && m.areEqual(this.region, guild.region) && this.ownerId == guild.ownerId && m.areEqual(this.icon, guild.icon) && m.areEqual(this.verificationLevel, guild.verificationLevel) && m.areEqual(this.explicitContentFilter, guild.explicitContentFilter) && this.unavailable == guild.unavailable && this.mfaLevel == guild.mfaLevel && this.afkTimeout == guild.afkTimeout && m.areEqual(this.afkChannelId, guild.afkChannelId) && m.areEqual(this.systemChannelId, guild.systemChannelId) && m.areEqual(this.features, guild.features) && this.memberCount == guild.memberCount && m.areEqual(this.banner, guild.banner) && m.areEqual(this.splash, guild.splash) && this.premiumTier == guild.premiumTier && this.premiumSubscriptionCount == guild.premiumSubscriptionCount && this.systemChannelFlags == guild.systemChannelFlags && m.areEqual(this.joinedAt, guild.joinedAt) && m.areEqual(this.rulesChannelId, guild.rulesChannelId) && m.areEqual(this.publicUpdatesChannelId, guild.publicUpdatesChannelId) && m.areEqual(this.preferredLocale, guild.preferredLocale) && m.areEqual(this.welcomeScreen, guild.welcomeScreen) && m.areEqual(this.maxVideoChannelUsers, guild.maxVideoChannelUsers) && m.areEqual(this.vanityUrlCode, guild.vanityUrlCode) && this.approximatePresenceCount == guild.approximatePresenceCount && this.nsfw == guild.nsfw;
return m.areEqual(this.roles, guild.roles) && m.areEqual(this.emojis, guild.emojis) && m.areEqual(this.stickers, guild.stickers) && m.areEqual(this.name, guild.name) && m.areEqual(this.description, guild.description) && this.defaultMessageNotifications == guild.defaultMessageNotifications && this.f2198id == guild.f2198id && m.areEqual(this.region, guild.region) && this.ownerId == guild.ownerId && m.areEqual(this.icon, guild.icon) && m.areEqual(this.verificationLevel, guild.verificationLevel) && m.areEqual(this.explicitContentFilter, guild.explicitContentFilter) && this.unavailable == guild.unavailable && this.mfaLevel == guild.mfaLevel && this.afkTimeout == guild.afkTimeout && m.areEqual(this.afkChannelId, guild.afkChannelId) && m.areEqual(this.systemChannelId, guild.systemChannelId) && m.areEqual(this.features, guild.features) && this.memberCount == guild.memberCount && m.areEqual(this.banner, guild.banner) && m.areEqual(this.splash, guild.splash) && this.premiumTier == guild.premiumTier && this.premiumSubscriptionCount == guild.premiumSubscriptionCount && this.systemChannelFlags == guild.systemChannelFlags && m.areEqual(this.joinedAt, guild.joinedAt) && m.areEqual(this.rulesChannelId, guild.rulesChannelId) && m.areEqual(this.publicUpdatesChannelId, guild.publicUpdatesChannelId) && m.areEqual(this.preferredLocale, guild.preferredLocale) && m.areEqual(this.welcomeScreen, guild.welcomeScreen) && m.areEqual(this.maxVideoChannelUsers, guild.maxVideoChannelUsers) && m.areEqual(this.vanityUrlCode, guild.vanityUrlCode) && this.approximatePresenceCount == guild.approximatePresenceCount && this.nsfw == guild.nsfw && m.areEqual(this.hubType, guild.hubType);
}
public final Long getAfkChannelId() {
@ -363,6 +370,10 @@ public final class Guild {
return this.features;
}
public final GuildHubType getHubType() {
return this.hubType;
}
public final String getIcon() {
return this.icon;
}
@ -525,15 +536,17 @@ public final class Guild {
GuildMaxVideoChannelUsers guildMaxVideoChannelUsers = this.maxVideoChannelUsers;
int hashCode18 = (hashCode17 + (guildMaxVideoChannelUsers != null ? guildMaxVideoChannelUsers.hashCode() : 0)) * 31;
String str9 = this.vanityUrlCode;
if (str9 != null) {
i = str9.hashCode();
}
int i7 = (((hashCode18 + i) * 31) + this.approximatePresenceCount) * 31;
int hashCode19 = (((hashCode18 + (str9 != null ? str9.hashCode() : 0)) * 31) + this.approximatePresenceCount) * 31;
boolean z3 = this.nsfw;
if (!z3) {
i2 = z3 ? 1 : 0;
}
return i7 + i2;
int i7 = (hashCode19 + i2) * 31;
GuildHubType guildHubType = this.hubType;
if (guildHubType != null) {
i = guildHubType.hashCode();
}
return i7 + i;
}
public final boolean isHub() {
@ -551,74 +564,74 @@ public final class Guild {
if (k == null) {
k = n.emptyList();
}
String w = guild.w();
String x2 = guild.x();
String i = guild.i();
if (i == null) {
i = this.description;
}
Integer h = guild.h();
int intValue = h != null ? h.intValue() : this.defaultMessageNotifications;
long q = guild.q() != 0 ? guild.q() : this.f2198id;
String E = guild.E();
if (E == null) {
E = this.region;
long r = guild.r() != 0 ? guild.r() : this.f2198id;
String F = guild.F();
if (F == null) {
F = this.region;
}
long y2 = guild.y() != 0 ? guild.y() : this.ownerId;
String p = guild.p();
if (p == null) {
p = this.icon;
long z2 = guild.z() != 0 ? guild.z() : this.ownerId;
String q = guild.q();
if (q == null) {
q = this.icon;
}
GuildVerificationLevel P = guild.P();
if (P == null) {
P = this.verificationLevel;
GuildVerificationLevel Q = guild.Q();
if (Q == null) {
Q = this.verificationLevel;
}
GuildExplicitContentFilter l = guild.l();
if (l == null) {
l = this.explicitContentFilter;
}
boolean N = guild.N();
int v = guild.v();
boolean O = guild.O();
int w = guild.w();
int c2 = guild.c() != 0 ? guild.c() : this.afkTimeout;
Long b = guild.b();
Long L = guild.L();
Long M = guild.M();
Set set = u.toSet(guild.m());
String e = guild.e();
String H = guild.H();
if (H == null) {
H = this.splash;
String I = guild.I();
if (I == null) {
I = this.splash;
}
int C = guild.C();
int B = guild.B();
int A = guild.A();
int K = guild.K();
String r = guild.r();
if (r == null) {
r = this.joinedAt;
}
Long G = guild.G();
if (G == null) {
G = this.rulesChannelId;
}
Long D = guild.D();
if (D == null) {
D = this.publicUpdatesChannelId;
}
String z2 = guild.z();
if (z2 == null) {
z2 = this.preferredLocale;
}
GuildWelcomeScreen R = guild.R();
if (R == null) {
R = this.welcomeScreen;
}
GuildMaxVideoChannelUsers s2 = guild.s();
int L = guild.L();
String s2 = guild.s();
if (s2 == null) {
s2 = this.maxVideoChannelUsers;
s2 = this.joinedAt;
}
String O = guild.O();
if (O == null) {
O = this.vanityUrlCode;
Long H = guild.H();
if (H == null) {
H = this.rulesChannelId;
}
return new Guild(emptyList, k, null, w, i, intValue, q, E, y2, p, P, l, N, v, c2, b, L, set, 0, e, H, B, A, K, r, G, D, z2, R, s2, O, guild.d() != 0 ? guild.d() : this.approximatePresenceCount, guild.x(), 4, 0, null);
Long E = guild.E();
if (E == null) {
E = this.publicUpdatesChannelId;
}
String A = guild.A();
if (A == null) {
A = this.preferredLocale;
}
GuildWelcomeScreen S = guild.S();
if (S == null) {
S = this.welcomeScreen;
}
GuildMaxVideoChannelUsers t = guild.t();
if (t == null) {
t = this.maxVideoChannelUsers;
}
String P = guild.P();
if (P == null) {
P = this.vanityUrlCode;
}
return new Guild(emptyList, k, null, x2, i, intValue, r, F, z2, q, Q, l, O, w, c2, b, M, set, 0, e, I, C, B, L, s2, H, E, A, S, t, P, guild.d() != 0 ? guild.d() : this.approximatePresenceCount, guild.y(), guild.p(), 4, 0, null);
}
public String toString() {
@ -687,6 +700,10 @@ public final class Guild {
R.append(", approximatePresenceCount=");
R.append(this.approximatePresenceCount);
R.append(", nsfw=");
return a.L(R, this.nsfw, ")");
R.append(this.nsfw);
R.append(", hubType=");
R.append(this.hubType);
R.append(")");
return R.toString();
}
}

View File

@ -14,7 +14,8 @@ import com.discord.api.channel.Channel;
import com.discord.api.commands.ApplicationCommand;
import com.discord.api.commands.ApplicationCommandData;
import com.discord.api.connectedaccounts.ConnectedAccount;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryEvent;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.api.fingerprint.FingerprintResponse;
import com.discord.api.friendsuggestions.BulkAddFriendsResponse;
import com.discord.api.friendsuggestions.BulkFriendSuggestions;
@ -263,7 +264,7 @@ public interface RestAPIInterface {
Observable<Void> addRelationship(@s("userId") long j, @a RestAPIParams.UserRelationship userRelationship, @i("X-Context-Properties") String str);
@i0.f0.o("channels/{channelId}/directory-entry/{guildId}")
Observable<Response<DirectoryEntry>> addServerToHub(@s("channelId") long j, @s("guildId") long j2, @a RestAPIParams.AddServerBody addServerBody);
Observable<Response<DirectoryEntryGuild>> addServerToHub(@s("channelId") long j, @s("guildId") long j2, @a RestAPIParams.AddServerBody addServerBody);
@f("connections/{connection}/authorize")
Observable<ModelUrl> authorizeConnection(@s("connection") String str);
@ -512,7 +513,10 @@ public interface RestAPIInterface {
Observable<Consents> getConsents();
@f("channels/{channelId}/directory-entries")
Observable<List<DirectoryEntry>> getDirectoryEntries(@s("channelId") long j);
Observable<List<DirectoryEntryGuild>> getDirectoryEntries(@s("channelId") long j);
@f("channels/{channelId}/directory-entries")
Observable<List<DirectoryEntryEvent>> getDirectoryGuildScheduledEvents(@s("channelId") long j, @t("type") int i);
@f("emojis/{emojiId}/guild")
Observable<Guild> getEmojiGuild(@s("emojiId") long j);
@ -722,7 +726,7 @@ public interface RestAPIInterface {
Observable<Response<Void>> logout(@a RestAPIParams.UserDevices userDevices);
@n("channels/{channelId}/directory-entry/{guildId}")
Observable<DirectoryEntry> modifyServerInHub(@s("channelId") long j, @s("guildId") long j2, @a RestAPIParams.AddServerBody addServerBody);
Observable<DirectoryEntryGuild> modifyServerInHub(@s("channelId") long j, @s("guildId") long j2, @a RestAPIParams.AddServerBody addServerBody);
@n("guilds/{guildId}/emojis/{emojiId}")
Observable<ModelEmojiGuild> patchGuildEmoji(@s("guildId") long j, @s("emojiId") long j2, @a RestAPIParams.PatchGuildEmoji patchGuildEmoji);
@ -803,7 +807,7 @@ public interface RestAPIInterface {
Observable<Void> removeSelfReaction(@s("channelId") long j, @s("messageId") long j2, @s(encoded = true, value = "reaction") String str);
@b("channels/{channelId}/directory-entry/{guildId}")
Observable<Response<DirectoryEntry>> removeServerFromHub(@s("channelId") long j, @s("guildId") long j2);
Observable<Response<DirectoryEntryGuild>> removeServerFromHub(@s("channelId") long j, @s("guildId") long j2);
@n("guilds/{guildId}/channels")
Observable<Void> reorderChannels(@s("guildId") long j, @a List<RestAPIParams.ChannelPosition> list);
@ -845,7 +849,7 @@ public interface RestAPIInterface {
Observable<ModelSearchResponse> searchGuildMessages(@s("guildId") long j, @t("max_id") Long l, @t("author_id") List<String> list, @t("mentions") List<String> list2, @t("channel_id") List<String> list3, @t("has") List<String> list4, @t("content") List<String> list5, @t("attempts") Integer num, @t("include_nsfw") Boolean bool);
@f("channels/{channelId}/directory-entries/search")
Observable<List<DirectoryEntry>> searchServers(@s("channelId") long j, @t("query") String str);
Observable<List<DirectoryEntryGuild>> searchServers(@s("channelId") long j, @t("query") String str);
@i0.f0.o("interactions")
@l

View File

@ -373,24 +373,24 @@ public final class ReadyPayloadUtils {
String i = guild2.i();
GuildExplicitContentFilter l = guild2.l();
List<GuildFeature> m = guild2.m();
String p = guild2.p();
GuildMaxVideoChannelUsers s2 = guild2.s();
int v = guild2.v();
String w = guild2.w();
long y2 = guild2.y();
String z2 = guild2.z();
int B = guild2.B();
Long D = guild2.D();
String E = guild2.E();
Long G = guild2.G();
guild3 = Guild.a(guild, null, null, null, w, i, h, 0, E, y2, p, guild2.P(), l, null, null, null, null, false, v, c2, b, guild2.L(), m, 0, e, guild2.H(), B, 0, guild2.K(), null, G, D, z2, null, s2, guild2.O(), 0, 0, null, null, null, null, false, null, null, null, 339865671, 8185);
String q = guild2.q();
GuildMaxVideoChannelUsers t = guild2.t();
int w = guild2.w();
String x2 = guild2.x();
long z2 = guild2.z();
String A = guild2.A();
int C = guild2.C();
Long E = guild2.E();
String F = guild2.F();
Long H = guild2.H();
guild3 = Guild.a(guild, null, null, null, x2, i, h, 0, F, z2, q, guild2.Q(), l, null, null, null, null, false, w, c2, b, guild2.M(), m, 0, e, guild2.I(), C, 0, guild2.L(), null, H, E, A, null, t, guild2.P(), 0, 0, null, null, null, null, false, null, null, null, null, 339865671, 16377);
}
if (list != null) {
guild3 = Guild.a(guild3, null, list, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, -3, 8191);
guild3 = Guild.a(guild3, null, list, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, null, -3, 16383);
}
Guild guild4 = guild3;
if (list2 != null) {
guild4 = Guild.a(guild4, null, null, list2, null, null, null, 0, null, 0, null, null, null, null, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, -5, 8191);
guild4 = Guild.a(guild4, null, null, list2, null, null, null, 0, null, 0, null, null, null, null, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, null, -5, 16383);
}
Guild guild5 = guild4;
if (list3 != null) {
@ -401,7 +401,7 @@ public final class ReadyPayloadUtils {
for (Channel channel : f) {
hashMap.put(Long.valueOf(channel.h()), channel);
}
guild5 = Guild.a(guild5, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, -1, 8063);
guild5 = Guild.a(guild5, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, null, -1, 16255);
}
ArrayList arrayList = new ArrayList();
for (Channel channel2 : list3) {
@ -412,17 +412,17 @@ public final class ReadyPayloadUtils {
arrayList.add(channel2);
}
}
guild5 = Guild.a(guild5, null, null, null, null, null, null, 0, null, 0, null, null, null, null, arrayList, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, -8193, 8191);
guild5 = Guild.a(guild5, null, null, null, null, null, null, 0, null, 0, null, null, null, null, arrayList, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, null, -8193, 16383);
}
Guild guild6 = guild5;
if (list4 != null) {
guild6 = Guild.a(guild6, list4, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, -2, 8191);
guild6 = Guild.a(guild6, list4, null, null, null, null, null, 0, null, 0, null, null, null, null, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, null, -2, 16383);
}
Guild guild7 = guild6;
if (list5 != null) {
guild7 = Guild.a(guild7, null, null, null, null, null, null, 0, null, 0, null, null, null, list5, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, -4097, 8191);
guild7 = Guild.a(guild7, null, null, null, null, null, null, 0, null, 0, null, null, null, list5, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, null, -4097, 16383);
}
return map != null ? Guild.a(guild7, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, u.toList(map.values()), null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, -16385, 8191) : guild7;
return map != null ? Guild.a(guild7, null, null, null, null, null, null, 0, null, 0, null, null, null, null, null, u.toList(map.values()), null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, 0, null, null, null, null, false, null, null, null, null, -16385, 16383) : guild7;
}
/* JADX WARNING: Removed duplicated region for block: B:37:0x00a5 */
@ -457,10 +457,10 @@ public final class ReadyPayloadUtils {
boolean booleanValue = ((Boolean) triple.component1()).booleanValue();
boolean booleanValue2 = ((Boolean) triple.component2()).booleanValue();
boolean booleanValue3 = ((Boolean) triple.component3()).booleanValue();
if (guild.N()) {
if (guild.O()) {
return new HydrateGuildResult.Success(guild);
}
GuildCache remove = cache.remove(Long.valueOf(guild.q()));
GuildCache remove = cache.remove(Long.valueOf(guild.r()));
if ((booleanValue || booleanValue2 || booleanValue3) && remove == null) {
return HydrateGuildResult.Error.INSTANCE;
}

View File

@ -672,7 +672,7 @@ public final class StoreAnalytics extends Store {
pairArr[0] = o.to(ModelAuditLogEntry.CHANGE_KEY_LOCATION, str);
pairArr[1] = o.to("message_id", Long.valueOf(message.o()));
Long l = null;
pairArr[2] = o.to("invite_guild_id", (modelInvite == null || (guild = modelInvite.getGuild()) == null) ? null : Long.valueOf(guild.q()));
pairArr[2] = o.to("invite_guild_id", (modelInvite == null || (guild = modelInvite.getGuild()) == null) ? null : Long.valueOf(guild.r()));
pairArr[3] = o.to("invite_channel_id", (modelInvite == null || (channel = modelInvite.getChannel()) == null) ? null : Long.valueOf(channel.h()));
if (!(modelInvite == null || (guildScheduledEvent = modelInvite.getGuildScheduledEvent()) == null)) {
l = Long.valueOf(guildScheduledEvent.h());

View File

@ -339,10 +339,10 @@ public final class StoreApplicationStreaming extends StoreV2 {
List<Guild> guilds = modelPayload.getGuilds();
m.checkNotNullExpressionValue(guilds, "payload.guilds");
for (Guild guild : guilds) {
List<VoiceState> Q = guild.Q();
if (Q != null) {
for (VoiceState voiceState : Q) {
handleVoiceStateUpdate(voiceState, guild.q());
List<VoiceState> R = guild.R();
if (R != null) {
for (VoiceState voiceState : R) {
handleVoiceStateUpdate(voiceState, guild.r());
}
}
}

View File

@ -24,6 +24,6 @@ public final class StoreChannels$handleGuildRemove$2 extends o implements Functi
public final boolean invoke(Channel channel) {
m.checkNotNullParameter(channel, "thread");
return channel.f() == this.$guild.q();
return channel.f() == this.$guild.r();
}
}

View File

@ -397,7 +397,7 @@ public final class StoreChannels extends StoreV2 {
m.checkNotNullExpressionValue(guilds, "payload.guilds");
for (Guild guild : guilds) {
Map<Long, Map<Long, Channel>> map4 = this.channelsByGuild;
Long valueOf2 = Long.valueOf(guild.q());
Long valueOf2 = Long.valueOf(guild.r());
Map<Long, Channel> map5 = map4.get(valueOf2);
if (map5 == null) {
map5 = new HashMap<>();
@ -407,14 +407,14 @@ public final class StoreChannels extends StoreV2 {
List<Channel> g = guild.g();
if (g != null) {
for (Channel channel3 : g) {
map6.put(Long.valueOf(channel3.h()), Channel.a(channel3, null, 0, channel3.f() != 0 ? channel3.f() : guild.q(), null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, false, 0, null, 0, null, null, null, null, null, null, null, null, 536870907));
map6.put(Long.valueOf(channel3.h()), Channel.a(channel3, null, 0, channel3.f() != 0 ? channel3.f() : guild.r(), null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, false, 0, null, 0, null, null, null, null, null, null, null, null, 536870907));
}
}
List<Channel> M = guild.M();
if (M != null) {
for (Channel channel4 : M) {
List<Channel> N = guild.N();
if (N != null) {
for (Channel channel4 : N) {
if (ChannelUtils.C(channel4)) {
storeThread$app_productionCanaryRelease$default(this, channel4, guild.q(), null, 4, null);
storeThread$app_productionCanaryRelease$default(this, channel4, guild.r(), null, 4, null);
}
}
}
@ -509,7 +509,7 @@ public final class StoreChannels extends StoreV2 {
public final void handleGuildAdd(Guild guild) {
m.checkNotNullParameter(guild, "guild");
Map<Long, Map<Long, Channel>> map = this.channelsByGuild;
Long valueOf = Long.valueOf(guild.q());
Long valueOf = Long.valueOf(guild.r());
Map<Long, Channel> map2 = map.get(valueOf);
if (map2 == null) {
map2 = new HashMap<>();
@ -519,15 +519,15 @@ public final class StoreChannels extends StoreV2 {
List<Channel> g = guild.g();
if (g != null) {
for (Channel channel : g) {
map3.put(Long.valueOf(channel.h()), Channel.a(channel, null, 0, channel.f() != 0 ? channel.f() : guild.q(), null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, false, 0, null, 0, null, null, null, null, null, null, null, null, 536870907));
map3.put(Long.valueOf(channel.h()), Channel.a(channel, null, 0, channel.f() != 0 ? channel.f() : guild.r(), null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, false, 0, null, 0, null, null, null, null, null, null, null, null, 536870907));
this.channelNames.put(Long.valueOf(channel.h()), ChannelUtils.c(channel));
}
}
List<Channel> M = guild.M();
if (M != null) {
for (Channel channel2 : M) {
List<Channel> N = guild.N();
if (N != null) {
for (Channel channel2 : N) {
if (ChannelUtils.C(channel2)) {
storeThread$app_productionCanaryRelease$default(this, channel2, guild.q(), null, 4, null);
storeThread$app_productionCanaryRelease$default(this, channel2, guild.r(), null, 4, null);
}
}
}
@ -538,15 +538,15 @@ public final class StoreChannels extends StoreV2 {
public final void handleGuildRemove(Guild guild) {
Set<Long> keySet;
m.checkNotNullParameter(guild, "guild");
long q = guild.q();
if (this.channelsByGuild.containsKey(Long.valueOf(q))) {
Map<Long, Channel> map = this.channelsByGuild.get(Long.valueOf(q));
long r = guild.r();
if (this.channelsByGuild.containsKey(Long.valueOf(r))) {
Map<Long, Channel> map = this.channelsByGuild.get(Long.valueOf(r));
if (!(map == null || (keySet = map.keySet()) == null)) {
for (Number number : keySet) {
this.channelNames.remove(Long.valueOf(number.longValue()));
}
}
this.channelsByGuild.remove(Long.valueOf(guild.q()));
this.channelsByGuild.remove(Long.valueOf(guild.r()));
r.removeAll(this.threadsById.values(), new StoreChannels$handleGuildRemove$2(guild));
}
markChanged();

View File

@ -798,7 +798,7 @@ public final class StoreChannelsSelected extends StoreV2 {
m.checkNotNullExpressionValue(guilds, "payload.guilds");
HashSet hashSetOf = n0.hashSetOf(0L);
for (Guild guild : guilds) {
hashSetOf.add(Long.valueOf(guild.q()));
hashSetOf.add(Long.valueOf(guild.r()));
}
Map<Long, UserChannelSelection> map = this.userChannelSelections;
LinkedHashMap linkedHashMap = new LinkedHashMap();
@ -820,7 +820,7 @@ public final class StoreChannelsSelected extends StoreV2 {
@StoreThread
public final void handleGuildAdd(Guild guild) {
m.checkNotNullParameter(guild, "guild");
if (this.storeGuildSelected.getSelectedGuildIdInternal$app_productionCanaryRelease() == guild.q()) {
if (this.storeGuildSelected.getSelectedGuildIdInternal$app_productionCanaryRelease() == guild.r()) {
validateSelectedChannel();
}
}
@ -829,7 +829,7 @@ public final class StoreChannelsSelected extends StoreV2 {
public final void handleGuildRemove(Guild guild) {
m.checkNotNullParameter(guild, "guild");
Channel maybeChannel = this.selectedChannel.getMaybeChannel();
if (maybeChannel != null && maybeChannel.f() == guild.q()) {
if (maybeChannel != null && maybeChannel.f() == guild.r()) {
validateSelectedChannel();
}
}

View File

@ -207,12 +207,12 @@ public final class StoreClientDataState extends StoreV2 {
@StoreThread
private final void updateGuildHash(Guild guild) {
GuildHashes n;
if (guild.N() || (n = guild.n()) == null || !GuildHashUtilsKt.isSupported(n)) {
this.guildHashes.remove(Long.valueOf(guild.q()));
if (guild.O() || (n = guild.n()) == null || !GuildHashUtilsKt.isSupported(n)) {
this.guildHashes.remove(Long.valueOf(guild.r()));
return;
}
Map<Long, GuildHashes> map = this.guildHashes;
Long valueOf = Long.valueOf(guild.q());
Long valueOf = Long.valueOf(guild.r());
GuildHashes n2 = guild.n();
m.checkNotNull(n2);
map.put(valueOf, n2);
@ -293,7 +293,7 @@ public final class StoreClientDataState extends StoreV2 {
@StoreThread
public final void handleGuildRemove(Guild guild) {
m.checkNotNullParameter(guild, "guild");
this.guildHashes.remove(Long.valueOf(guild.q()));
this.guildHashes.remove(Long.valueOf(guild.r()));
markChanged();
}

View File

@ -96,7 +96,7 @@ public final class StoreCollapsedChannelCategories extends StoreV2 {
List<Guild> guilds = modelPayload.getGuilds();
m.checkNotNullExpressionValue(guilds, "payload.guilds");
for (Guild guild : guilds) {
Set<Long> set = this.collapsedCategories.get(Long.valueOf(guild.q()));
Set<Long> set = this.collapsedCategories.get(Long.valueOf(guild.r()));
if (set != null) {
HashSet<Long> hashSet2 = new HashSet(set);
List<Channel> g = guild.g();
@ -106,11 +106,11 @@ public final class StoreCollapsedChannelCategories extends StoreV2 {
}
}
for (Long l : hashSet2) {
long q = guild.q();
long r = guild.r();
m.checkNotNullExpressionValue(l, "channelId");
setCollapsedState(q, l.longValue(), false);
setCollapsedState(r, l.longValue(), false);
}
hashSet.remove(Long.valueOf(guild.q()));
hashSet.remove(Long.valueOf(guild.r()));
}
}
for (Long l2 : hashSet) {

View File

@ -1,6 +1,6 @@
package com.discord.stores;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.stores.utilities.RestCallState;
import com.discord.stores.utilities.Success;
import d0.t.n;
@ -15,15 +15,15 @@ import kotlin.jvm.functions.Function0;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$addServerToDirectory$1 extends o implements Function0<Unit> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ DirectoryEntry $directoryEntry;
public final /* synthetic */ DirectoryEntryGuild $directoryEntry;
public final /* synthetic */ StoreDirectories this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreDirectories$addServerToDirectory$1(StoreDirectories storeDirectories, long j, DirectoryEntry directoryEntry) {
public StoreDirectories$addServerToDirectory$1(StoreDirectories storeDirectories, long j, DirectoryEntryGuild directoryEntryGuild) {
super(0);
this.this$0 = storeDirectories;
this.$channelId = j;
this.$directoryEntry = directoryEntry;
this.$directoryEntry = directoryEntryGuild;
}
@Override // kotlin.jvm.functions.Function0
@ -32,24 +32,24 @@ public final class StoreDirectories$addServerToDirectory$1 extends o implements
Map access$getDirectoriesMap$p = StoreDirectories.access$getDirectoriesMap$p(this.this$0);
Long valueOf = Long.valueOf(this.$channelId);
RestCallState restCallState = (RestCallState) StoreDirectories.access$getDirectoriesMap$p(this.this$0).get(Long.valueOf(this.$channelId));
DirectoryEntry directoryEntry = null;
List<DirectoryEntry> list = restCallState != null ? (List) restCallState.invoke() : null;
DirectoryEntryGuild directoryEntryGuild = null;
List<DirectoryEntryGuild> list = restCallState != null ? (List) restCallState.invoke() : null;
if (list == null) {
list = n.emptyList();
}
ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(list, 10));
boolean z2 = false;
for (DirectoryEntry directoryEntry2 : list) {
if (directoryEntry2.e().h() == this.$directoryEntry.e().h()) {
for (DirectoryEntryGuild directoryEntryGuild2 : list) {
if (directoryEntryGuild2.e().h() == this.$directoryEntry.e().h()) {
z2 = true;
directoryEntry2 = this.$directoryEntry;
directoryEntryGuild2 = this.$directoryEntry;
}
arrayList.add(directoryEntry2);
arrayList.add(directoryEntryGuild2);
}
if (!z2) {
directoryEntry = this.$directoryEntry;
directoryEntryGuild = this.$directoryEntry;
}
access$getDirectoriesMap$p.put(valueOf, new Success(u.plus((Collection) arrayList, (Iterable) n.listOfNotNull(directoryEntry))));
access$getDirectoriesMap$p.put(valueOf, new Success(u.plus((Collection) arrayList, (Iterable) n.listOfNotNull(directoryEntryGuild))));
this.this$0.markChanged();
}
}

View File

@ -6,6 +6,13 @@ import java.util.Comparator;
public final class StoreDirectories$fetchDirectoriesForChannel$1$$special$$inlined$sortedByDescending$1<T> implements Comparator<T> {
@Override // java.util.Comparator
public final int compare(T t, T t2) {
return a.compareValues(t2.e().a(), t.e().a());
Integer a = t2.e().a();
int i = 0;
Integer valueOf = Integer.valueOf(a != null ? a.intValue() : 0);
Integer a2 = t.e().a();
if (a2 != null) {
i = a2.intValue();
}
return a.compareValues(valueOf, Integer.valueOf(i));
}
}

View File

@ -1,22 +1,22 @@
package com.discord.stores;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import d0.t.u;
import d0.z.d.m;
import j0.k.b;
import java.util.List;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$fetchDirectoriesForChannel$1<T, R> implements b<List<? extends DirectoryEntry>, List<? extends DirectoryEntry>> {
public final class StoreDirectories$fetchDirectoriesForChannel$1<T, R> implements b<List<? extends DirectoryEntryGuild>, List<? extends DirectoryEntryGuild>> {
public static final StoreDirectories$fetchDirectoriesForChannel$1 INSTANCE = new StoreDirectories$fetchDirectoriesForChannel$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 // j0.k.b
public /* bridge */ /* synthetic */ List<? extends DirectoryEntry> call(List<? extends DirectoryEntry> list) {
return call((List<DirectoryEntry>) list);
public /* bridge */ /* synthetic */ List<? extends DirectoryEntryGuild> call(List<? extends DirectoryEntryGuild> list) {
return call((List<DirectoryEntryGuild>) list);
}
public final List<DirectoryEntry> call(List<DirectoryEntry> list) {
public final List<DirectoryEntryGuild> call(List<DirectoryEntryGuild> list) {
m.checkNotNullExpressionValue(list, "entries");
return u.sortedWith(list, new StoreDirectories$fetchDirectoriesForChannel$1$$special$$inlined$sortedByDescending$1());
}

View File

@ -1,6 +1,6 @@
package com.discord.stores;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.stores.utilities.RestCallState;
import d0.z.d.m;
import d0.z.d.o;
@ -9,7 +9,7 @@ import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$fetchDirectoriesForChannel$2 extends o implements Function1<RestCallState<? extends List<? extends DirectoryEntry>>, Unit> {
public final class StoreDirectories$fetchDirectoriesForChannel$2 extends o implements Function1<RestCallState<? extends List<? extends DirectoryEntryGuild>>, Unit> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ StoreDirectories this$0;
@ -44,12 +44,12 @@ public final class StoreDirectories$fetchDirectoriesForChannel$2 extends o imple
/* 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 */ Unit invoke(RestCallState<? extends List<? extends DirectoryEntry>> restCallState) {
invoke((RestCallState<? extends List<DirectoryEntry>>) restCallState);
public /* bridge */ /* synthetic */ Unit invoke(RestCallState<? extends List<? extends DirectoryEntryGuild>> restCallState) {
invoke((RestCallState<? extends List<DirectoryEntryGuild>>) restCallState);
return Unit.a;
}
public final void invoke(RestCallState<? extends List<DirectoryEntry>> restCallState) {
public final void invoke(RestCallState<? extends List<DirectoryEntryGuild>> restCallState) {
m.checkNotNullParameter(restCallState, "entriesResponse");
StoreDirectories.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, restCallState));
}

View File

@ -0,0 +1,56 @@
package com.discord.stores;
import com.discord.api.directory.DirectoryEntryEvent;
import com.discord.stores.utilities.RestCallState;
import d0.z.d.m;
import d0.z.d.o;
import java.util.List;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$fetchGuildScheduledEventsForChannel$1 extends o implements Function1<RestCallState<? extends List<? extends DirectoryEntryEvent>>, Unit> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ StoreDirectories this$0;
/* compiled from: StoreDirectories.kt */
/* renamed from: com.discord.stores.StoreDirectories$fetchGuildScheduledEventsForChannel$1$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function0<Unit> {
public final /* synthetic */ RestCallState $response;
public final /* synthetic */ StoreDirectories$fetchGuildScheduledEventsForChannel$1 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(StoreDirectories$fetchGuildScheduledEventsForChannel$1 storeDirectories$fetchGuildScheduledEventsForChannel$1, RestCallState restCallState) {
super(0);
this.this$0 = storeDirectories$fetchGuildScheduledEventsForChannel$1;
this.$response = restCallState;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreDirectories.access$getDirectoryGuildScheduledEventsMap$p(this.this$0.this$0).put(Long.valueOf(this.this$0.$channelId), this.$response);
this.this$0.this$0.markChanged();
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreDirectories$fetchGuildScheduledEventsForChannel$1(StoreDirectories storeDirectories, long j) {
super(1);
this.this$0 = storeDirectories;
this.$channelId = j;
}
/* 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 */ Unit invoke(RestCallState<? extends List<? extends DirectoryEntryEvent>> restCallState) {
invoke((RestCallState<? extends List<DirectoryEntryEvent>>) restCallState);
return Unit.a;
}
public final void invoke(RestCallState<? extends List<DirectoryEntryEvent>> restCallState) {
m.checkNotNullParameter(restCallState, "response");
StoreDirectories.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, restCallState));
}
}

View File

@ -1,13 +1,13 @@
package com.discord.stores;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.stores.utilities.RestCallState;
import d0.z.d.o;
import java.util.List;
import java.util.Map;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$observeDirectories$1 extends o implements Function0<Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntry>>>> {
public final class StoreDirectories$observeDirectories$1 extends o implements Function0<Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryGuild>>>> {
public final /* synthetic */ StoreDirectories this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
@ -16,10 +16,10 @@ public final class StoreDirectories$observeDirectories$1 extends o implements Fu
this.this$0 = storeDirectories;
}
/* Return type fixed from 'java.util.Map<java.lang.Long, com.discord.stores.utilities.RestCallState<java.util.List<com.discord.api.directory.DirectoryEntry>>>' to match base method */
/* Return type fixed from 'java.util.Map<java.lang.Long, com.discord.stores.utilities.RestCallState<java.util.List<com.discord.api.directory.DirectoryEntryGuild>>>' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntry>>> mo1invoke() {
public final Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryGuild>>> mo1invoke() {
return StoreDirectories.access$getDirectoriesMapSnapshot$p(this.this$0);
}
}

View File

@ -1,12 +1,12 @@
package com.discord.stores;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.stores.utilities.RestCallState;
import d0.z.d.o;
import java.util.List;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$observeDirectoriesForChannel$1 extends o implements Function0<RestCallState<? extends List<? extends DirectoryEntry>>> {
public final class StoreDirectories$observeDirectoriesForChannel$1 extends o implements Function0<RestCallState<? extends List<? extends DirectoryEntryGuild>>> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ StoreDirectories this$0;
@ -17,10 +17,10 @@ public final class StoreDirectories$observeDirectoriesForChannel$1 extends o imp
this.$channelId = j;
}
/* Return type fixed from 'com.discord.stores.utilities.RestCallState<java.util.List<com.discord.api.directory.DirectoryEntry>>' to match base method */
/* Return type fixed from 'com.discord.stores.utilities.RestCallState<java.util.List<com.discord.api.directory.DirectoryEntryGuild>>' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final RestCallState<? extends List<? extends DirectoryEntry>> mo1invoke() {
public final RestCallState<? extends List<? extends DirectoryEntryGuild>> mo1invoke() {
return (RestCallState) StoreDirectories.access$getDirectoriesMapSnapshot$p(this.this$0).get(Long.valueOf(this.$channelId));
}
}

View File

@ -0,0 +1,25 @@
package com.discord.stores;
import com.discord.api.directory.DirectoryEntryEvent;
import com.discord.stores.utilities.RestCallState;
import d0.z.d.o;
import java.util.List;
import java.util.Map;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$observeDirectoryGuildScheduledEvents$1 extends o implements Function0<Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryEvent>>>> {
public final /* synthetic */ StoreDirectories this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreDirectories$observeDirectoryGuildScheduledEvents$1(StoreDirectories storeDirectories) {
super(0);
this.this$0 = storeDirectories;
}
/* Return type fixed from 'java.util.Map<java.lang.Long, com.discord.stores.utilities.RestCallState<java.util.List<com.discord.api.directory.DirectoryEntryEvent>>>' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryEvent>>> mo1invoke() {
return StoreDirectories.access$getDirectoryGuildScheduledEventsMapSnapshot$p(this.this$0);
}
}

View File

@ -2,11 +2,11 @@ package com.discord.stores;
import com.discord.analytics.generated.events.network_action.TrackNetworkActionDirectoryGuildEntryDelete;
import com.discord.analytics.generated.traits.TrackNetworkMetadataReceiver;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import d0.z.d.o;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$removeServerFromDirectory$1 extends o implements Function1<DirectoryEntry, TrackNetworkMetadataReceiver> {
public final class StoreDirectories$removeServerFromDirectory$1 extends o implements Function1<DirectoryEntryGuild, TrackNetworkMetadataReceiver> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ long $guildId;
@ -17,7 +17,7 @@ public final class StoreDirectories$removeServerFromDirectory$1 extends o implem
this.$guildId = j2;
}
public final TrackNetworkMetadataReceiver invoke(DirectoryEntry directoryEntry) {
public final TrackNetworkMetadataReceiver invoke(DirectoryEntryGuild directoryEntryGuild) {
return new TrackNetworkActionDirectoryGuildEntryDelete(Long.valueOf(this.$channelId), Long.valueOf(this.$guildId));
}
}

View File

@ -1,6 +1,7 @@
package com.discord.stores;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.api.guild.preview.GuildPreview;
import com.discord.stores.utilities.RestCallState;
import com.discord.stores.utilities.Success;
import d0.t.n;
@ -13,7 +14,7 @@ import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreDirectories.kt */
public final class StoreDirectories$removeServerFromDirectory$2 extends o implements Function1<RestCallState<? extends DirectoryEntry>, Unit> {
public final class StoreDirectories$removeServerFromDirectory$2 extends o implements Function1<RestCallState<? extends DirectoryEntryGuild>, Unit> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ long $guildId;
public final /* synthetic */ StoreDirectories this$0;
@ -41,7 +42,8 @@ public final class StoreDirectories$removeServerFromDirectory$2 extends o implem
}
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (((DirectoryEntry) obj).e().h() != this.this$0.$guildId) {
GuildPreview e = ((DirectoryEntryGuild) obj).e();
if (e == null || e.h() != this.this$0.$guildId) {
arrayList.add(obj);
}
}
@ -61,12 +63,12 @@ public final class StoreDirectories$removeServerFromDirectory$2 extends o implem
/* 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 */ Unit invoke(RestCallState<? extends DirectoryEntry> restCallState) {
invoke((RestCallState<DirectoryEntry>) restCallState);
public /* bridge */ /* synthetic */ Unit invoke(RestCallState<? extends DirectoryEntryGuild> restCallState) {
invoke((RestCallState<DirectoryEntryGuild>) restCallState);
return Unit.a;
}
public final void invoke(RestCallState<DirectoryEntry> restCallState) {
public final void invoke(RestCallState<DirectoryEntryGuild> restCallState) {
m.checkNotNullParameter(restCallState, "request");
if (restCallState instanceof Success) {
StoreDirectories.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this));

View File

@ -1,7 +1,9 @@
package com.discord.stores;
import android.content.Context;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryEvent;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.api.directory.DirectoryEntryType;
import com.discord.stores.updates.ObservationDeck;
import com.discord.stores.utilities.RestCallState;
import com.discord.stores.utilities.RestCallStateKt;
@ -27,8 +29,10 @@ public final class StoreDirectories extends StoreV2 {
public static final Companion Companion = new Companion(null);
private static final String DISCORD_HUB_VERIFICATION_CLICKED_KEY = "hub_verification_clicked_key";
private static final String HUB_NAME_PROMPT = "hub_name_prompt";
private Map<Long, RestCallState<List<DirectoryEntry>>> directoriesMap;
private Map<Long, ? extends RestCallState<? extends List<DirectoryEntry>>> directoriesMapSnapshot;
private Map<Long, RestCallState<List<DirectoryEntryGuild>>> directoriesMap;
private Map<Long, ? extends RestCallState<? extends List<DirectoryEntryGuild>>> directoriesMapSnapshot;
private Map<Long, RestCallState<List<DirectoryEntryEvent>>> directoryGuildScheduledEventsMap;
private Map<Long, ? extends RestCallState<? extends List<DirectoryEntryEvent>>> directoryGuildScheduledEventsMapSnapshot;
private final Persister<Boolean> discordHubClickedPersister;
private final Dispatcher dispatcher;
private Map<Long, RestCallState<Map<Integer, Integer>>> entryCountMap;
@ -61,6 +65,8 @@ public final class StoreDirectories extends StoreV2 {
this.directoriesMap = new LinkedHashMap();
this.entryCountMapSnapshot = h0.emptyMap();
this.entryCountMap = new LinkedHashMap();
this.directoryGuildScheduledEventsMapSnapshot = h0.emptyMap();
this.directoryGuildScheduledEventsMap = new LinkedHashMap();
this.discordHubClickedPersister = new Persister<>(DISCORD_HUB_VERIFICATION_CLICKED_KEY, Boolean.FALSE);
this.hubNamePromptPersister = new Persister<>(HUB_NAME_PROMPT, n0.emptySet());
}
@ -78,6 +84,14 @@ public final class StoreDirectories extends StoreV2 {
return storeDirectories.directoriesMapSnapshot;
}
public static final /* synthetic */ Map access$getDirectoryGuildScheduledEventsMap$p(StoreDirectories storeDirectories) {
return storeDirectories.directoryGuildScheduledEventsMap;
}
public static final /* synthetic */ Map access$getDirectoryGuildScheduledEventsMapSnapshot$p(StoreDirectories storeDirectories) {
return storeDirectories.directoryGuildScheduledEventsMapSnapshot;
}
public static final /* synthetic */ Dispatcher access$getDispatcher$p(StoreDirectories storeDirectories) {
return storeDirectories.dispatcher;
}
@ -98,18 +112,26 @@ public final class StoreDirectories extends StoreV2 {
storeDirectories.directoriesMapSnapshot = map;
}
public static final /* synthetic */ void access$setDirectoryGuildScheduledEventsMap$p(StoreDirectories storeDirectories, Map map) {
storeDirectories.directoryGuildScheduledEventsMap = map;
}
public static final /* synthetic */ void access$setDirectoryGuildScheduledEventsMapSnapshot$p(StoreDirectories storeDirectories, Map map) {
storeDirectories.directoryGuildScheduledEventsMapSnapshot = map;
}
public static final /* synthetic */ void access$setEntryCountMap$p(StoreDirectories storeDirectories, Map map) {
storeDirectories.entryCountMap = map;
}
public final void addServerToDirectory(long j, DirectoryEntry directoryEntry) {
m.checkNotNullParameter(directoryEntry, "directoryEntry");
this.dispatcher.schedule(new StoreDirectories$addServerToDirectory$1(this, j, directoryEntry));
public final void addServerToDirectory(long j, DirectoryEntryGuild directoryEntryGuild) {
m.checkNotNullParameter(directoryEntryGuild, "directoryEntry");
this.dispatcher.schedule(new StoreDirectories$addServerToDirectory$1(this, j, directoryEntryGuild));
}
public final void fetchDirectoriesForChannel(long j) {
Observable<R> F = this.restApi.getDirectoryEntries(j).F(StoreDirectories$fetchDirectoriesForChannel$1.INSTANCE);
m.checkNotNullExpressionValue(F, "restApi\n .getDire…pproximateMemberCount } }");
m.checkNotNullExpressionValue(F, "restApi\n .getDire…imateMemberCount ?: 0 } }");
RestCallStateKt.executeRequest(F, new StoreDirectories$fetchDirectoriesForChannel$2(this, j));
}
@ -117,6 +139,10 @@ public final class StoreDirectories extends StoreV2 {
RestCallStateKt.executeRequest(this.restApi.getEntryCounts(j), new StoreDirectories$fetchEntryCountsForChannel$1(this, j));
}
public final void fetchGuildScheduledEventsForChannel(long j) {
RestCallStateKt.executeRequest(this.restApi.getDirectoryGuildScheduledEvents(j, DirectoryEntryType.GuildScheduledEvent.getKey()), new StoreDirectories$fetchGuildScheduledEventsForChannel$1(this, j));
}
public final boolean getAndSetSeenNamePrompt(long j) {
boolean contains = this.hubNamePromptPersister.get().contains(Long.valueOf(j));
Persister<Set<Long>> persister = this.hubNamePromptPersister;
@ -124,7 +150,7 @@ public final class StoreDirectories extends StoreV2 {
return contains;
}
public final RestCallState<List<DirectoryEntry>> getDirectoriesForChannel(long j) {
public final RestCallState<List<DirectoryEntryGuild>> getDirectoriesForChannel(long j) {
return (RestCallState) this.directoriesMapSnapshot.get(Long.valueOf(j));
}
@ -145,14 +171,18 @@ public final class StoreDirectories extends StoreV2 {
Persister.set$default(this.discordHubClickedPersister, Boolean.TRUE, false, 2, null);
}
public final Observable<Map<Long, RestCallState<List<DirectoryEntry>>>> observeDirectories() {
public final Observable<Map<Long, RestCallState<List<DirectoryEntryGuild>>>> observeDirectories() {
return ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreDirectories$observeDirectories$1(this), 14, null);
}
public final Observable<RestCallState<List<DirectoryEntry>>> observeDirectoriesForChannel(long j) {
public final Observable<RestCallState<List<DirectoryEntryGuild>>> observeDirectoriesForChannel(long j) {
return ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreDirectories$observeDirectoriesForChannel$1(this, j), 14, null);
}
public final Observable<Map<Long, RestCallState<List<DirectoryEntryEvent>>>> observeDirectoryGuildScheduledEvents() {
return ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreDirectories$observeDirectoryGuildScheduledEvents$1(this), 14, null);
}
public final Observable<Boolean> observeDiscordHubClicked() {
Observable<Boolean> q = this.discordHubClickedPersister.getObservable().q();
m.checkNotNullExpressionValue(q, "discordHubClickedPersist… .distinctUntilChanged()");

View File

@ -53,7 +53,7 @@ public final class StoreEmbeddedActivities extends StoreV2 {
j = n.emptyList();
}
for (EmbeddedActivityInGuild embeddedActivityInGuild : j) {
handleEmbeddedActivityForChannel(embeddedActivityInGuild.a(), embeddedActivityInGuild.c(), embeddedActivityInGuild.b(), guild.q());
handleEmbeddedActivityForChannel(embeddedActivityInGuild.a(), embeddedActivityInGuild.c(), embeddedActivityInGuild.b(), guild.r());
}
}

View File

@ -155,11 +155,11 @@ public final class StoreEmojiCustom extends StoreV2 {
Collection<? extends ModelEmojiCustom> collection;
boolean z2;
m.checkNotNullParameter(guild, "guild");
List<com.discord.api.guildmember.GuildMember> u = guild.u();
if (u == null) {
List<com.discord.api.guildmember.GuildMember> v = guild.v();
if (v == null) {
return null;
}
Iterator<T> it = u.iterator();
Iterator<T> it = v.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
@ -181,18 +181,18 @@ public final class StoreEmojiCustom extends StoreV2 {
if (guildMember == null) {
return null;
}
long q = guild.q();
long r = guild.r();
List<GuildEmoji> k = guild.k();
if (k != null) {
collection = new ArrayList<>(o.collectionSizeOrDefault(k, 10));
for (GuildEmoji guildEmoji : k) {
collection.add(new ModelEmojiCustom(guildEmoji, q));
collection.add(new ModelEmojiCustom(guildEmoji, r));
}
} else {
collection = n.emptyList();
}
updateGlobalEmojis(q, collection);
updateAllowedGuildEmojis(q, guildMember.l(), collection);
updateGlobalEmojis(r, collection);
updateAllowedGuildEmojis(r, guildMember.l(), collection);
return Unit.a;
}
@ -212,13 +212,13 @@ public final class StoreEmojiCustom extends StoreV2 {
@StoreThread
public final void handleGuildRemove(Guild guild) {
m.checkNotNullParameter(guild, "guild");
long q = guild.q();
if (this.allowedGuildEmojis.containsKey(Long.valueOf(q))) {
this.allowedGuildEmojis.remove(Long.valueOf(q));
long r = guild.r();
if (this.allowedGuildEmojis.containsKey(Long.valueOf(r))) {
this.allowedGuildEmojis.remove(Long.valueOf(r));
markChanged();
}
if (this.allGuildEmoji.containsKey(Long.valueOf(q))) {
this.allGuildEmoji.remove(Long.valueOf(q));
if (this.allGuildEmoji.containsKey(Long.valueOf(r))) {
this.allGuildEmoji.remove(Long.valueOf(r));
markChanged();
}
}

View File

@ -190,9 +190,9 @@ public final class StoreGameParty extends StoreV2 {
@StoreThread
public final void handleGuildCreateOrSync(Guild guild) {
m.checkNotNullParameter(guild, "guild");
List<Presence> C = guild.C();
if (C != null) {
handlePresences(C);
List<Presence> D = guild.D();
if (D != null) {
handlePresences(D);
}
}

View File

@ -84,10 +84,12 @@ import d0.z.d.m;
import j0.l.c.c;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicReference;
import javax.net.ssl.SSLSocketFactory;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
@ -466,9 +468,11 @@ public final class StoreGatewayConnection implements GatewayEventHandler {
private final GatewaySocket buildGatewaySocket(Context context, NetworkMonitor networkMonitor) {
RestAPI.Companion companion = RestAPI.Companion;
List listOf = n.listOf((Object[]) new Interceptor[]{companion.buildAnalyticsInterceptor(), companion.buildLoggingInterceptor()});
App.a aVar = App.k;
boolean z2 = App.j;
GatewaySocket gatewaySocket = new GatewaySocket(new StoreGatewayConnection$buildGatewaySocket$socket$1(this), StoreGatewayConnection$buildGatewaySocket$socket$2.INSTANCE, this, this.scheduler, AppLog.g, networkMonitor, new RestConfig(BuildConfig.HOST_API, RestAPI.AppHeadersProvider.INSTANCE, listOf), context, z2 ? StoreGatewayConnection$buildGatewaySocket$gatewayUrlTransform$1.INSTANCE : null, z2 ? null : SecureSocketsLayerUtils.createSocketFactory$default(null, 1, null), AnalyticSuperProperties.INSTANCE.getSuperProperties(), this.gatewaySocketLogger);
App.a aVar = App.Companion;
Objects.requireNonNull(aVar);
SSLSocketFactory createSocketFactory$default = App.access$getIS_LOCAL$cp() ? null : SecureSocketsLayerUtils.createSocketFactory$default(null, 1, null);
Objects.requireNonNull(aVar);
GatewaySocket gatewaySocket = new GatewaySocket(new StoreGatewayConnection$buildGatewaySocket$socket$1(this), StoreGatewayConnection$buildGatewaySocket$socket$2.INSTANCE, this, this.scheduler, AppLog.g, networkMonitor, new RestConfig(BuildConfig.HOST_API, RestAPI.AppHeadersProvider.INSTANCE, listOf), context, App.access$getIS_LOCAL$cp() ? StoreGatewayConnection$buildGatewaySocket$gatewayUrlTransform$1.INSTANCE : null, createSocketFactory$default, AnalyticSuperProperties.INSTANCE.getSuperProperties(), this.gatewaySocketLogger);
this.stream.getConnectionTimeStats$app_productionCanaryRelease().addListener(gatewaySocket);
return gatewaySocket;
}

View File

@ -40,7 +40,7 @@ public final class StoreGuildJoinRequest$fetchPendingGuilds$1 extends o implemen
/* renamed from: invoke */
public final void mo1invoke() {
for (Guild guild : this.$results) {
StoreGuildJoinRequest.access$getPendingGuilds$p(this.this$0.this$0.this$0).put(Long.valueOf(guild.q()), new com.discord.models.guild.Guild(guild));
StoreGuildJoinRequest.access$getPendingGuilds$p(this.this$0.this$0.this$0).put(Long.valueOf(guild.r()), new com.discord.models.guild.Guild(guild));
}
this.this$0.this$0.this$0.markChanged();
}

View File

@ -40,7 +40,7 @@ public final class StoreGuildMemberCounts extends StoreV2 {
List<Guild> guilds = modelPayload.getGuilds();
if (guilds != null) {
for (Guild guild : guilds) {
this.guildMemberCounts.put(Long.valueOf(guild.q()), Integer.valueOf(guild.t()));
this.guildMemberCounts.put(Long.valueOf(guild.r()), Integer.valueOf(guild.u()));
}
}
markChanged();
@ -49,7 +49,7 @@ public final class StoreGuildMemberCounts extends StoreV2 {
@StoreThread
public final void handleGuildCreate(Guild guild) {
m.checkNotNullParameter(guild, "guild");
this.guildMemberCounts.put(Long.valueOf(guild.q()), Integer.valueOf(guild.t()));
this.guildMemberCounts.put(Long.valueOf(guild.r()), Integer.valueOf(guild.u()));
markChanged();
}

View File

@ -38,7 +38,7 @@ public final class StoreGuildSelected$handleConnectionOpen$1 extends o implement
if (!it.hasNext()) {
break;
}
if (j == ((Guild) it.next()).q()) {
if (j == ((Guild) it.next()).r()) {
z3 = true;
continue;
} else {

View File

@ -104,7 +104,7 @@ public final class StoreGuildSelected extends StoreV2 {
@StoreThread
public final void handleGuildRemove(Guild guild) {
m.checkNotNullParameter(guild, "guild");
if (this.selectedGuildIds.remove(Long.valueOf(guild.q()))) {
if (this.selectedGuildIds.remove(Long.valueOf(guild.r()))) {
markChanged();
}
}

View File

@ -150,11 +150,11 @@ public final class StoreGuildStickers extends StoreV2 {
Object obj;
boolean z2;
m.checkNotNullParameter(guild, "guild");
List<GuildMember> u = guild.u();
if (u == null) {
List<GuildMember> v = guild.v();
if (v == null) {
return null;
}
Iterator<T> it = u.iterator();
Iterator<T> it = v.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
@ -175,12 +175,12 @@ public final class StoreGuildStickers extends StoreV2 {
if (((GuildMember) obj) == null) {
return null;
}
long q = guild.q();
List<Sticker> J = guild.J();
if (J == null) {
J = n.emptyList();
long r = guild.r();
List<Sticker> K = guild.K();
if (K == null) {
K = n.emptyList();
}
updateStickers(q, J);
updateStickers(r, K);
return Unit.a;
}

View File

@ -136,19 +136,19 @@ public final class StoreGuilds extends StoreV2 {
@StoreThread
private final void handleGuild(com.discord.api.guild.Guild guild, boolean z2) {
long q = guild.q();
long r = guild.r();
if (!z2) {
Guild guild2 = this.guilds.get(Long.valueOf(q));
Guild guild2 = this.guilds.get(Long.valueOf(r));
if (guild2 == null) {
guild2 = new Guild(null, null, null, null, null, 0, 0, null, 0, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, false, -1, 1, null);
guild2 = new Guild(null, null, null, null, null, 0, 0, null, 0, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, false, null, -1, 3, null);
}
Guild merge = guild2.merge(guild);
if (!m.areEqual(merge, this.guilds.get(Long.valueOf(q)))) {
this.guilds.put(Long.valueOf(q), merge);
if (!m.areEqual(merge, this.guilds.get(Long.valueOf(r)))) {
this.guilds.put(Long.valueOf(r), merge);
markChanged(GuildsUpdate);
}
} else if (this.guilds.containsKey(Long.valueOf(q))) {
this.guilds.remove(Long.valueOf(q));
} else if (this.guilds.containsKey(Long.valueOf(r))) {
this.guilds.remove(Long.valueOf(r));
markChanged(GuildsUpdate);
}
}
@ -324,19 +324,19 @@ public final class StoreGuilds extends StoreV2 {
this.guildRoles.clear();
this.guildsUnavailable.clear();
for (com.discord.api.guild.Guild guild : modelPayload.getGuilds()) {
long q = guild.q();
if (guild.N()) {
this.guildsUnavailable.add(Long.valueOf(q));
long r = guild.r();
if (guild.O()) {
this.guildsUnavailable.add(Long.valueOf(r));
} else {
handleGuildRoles(q, 0, guild.F(), false);
handleGuildRoles(r, 0, guild.G(), false);
m.checkNotNullExpressionValue(guild, "guild");
handleGuild(guild, false);
List<com.discord.api.guildmember.GuildMember> u = guild.u();
if (u == null || (map = GuildUtilsKt.asMap(u)) == null) {
List<com.discord.api.guildmember.GuildMember> v = guild.v();
if (v == null || (map = GuildUtilsKt.asMap(v)) == null) {
map = h0.emptyMap();
}
handleGuildMembersMap(q, map);
handleHasRoleAndJoinedAt(q, map);
handleGuildMembersMap(r, map);
handleHasRoleAndJoinedAt(r, map);
}
}
markChanged(GuildsUpdate, ComputedMembersUpdate);
@ -346,16 +346,16 @@ public final class StoreGuilds extends StoreV2 {
public final void handleGuildAdd(com.discord.api.guild.Guild guild) {
Map<Long, com.discord.api.guildmember.GuildMember> map;
m.checkNotNullParameter(guild, "guild");
handleGuildUnavailable(guild.q(), guild.N(), false);
if (!guild.N()) {
handleGuildRoles(guild.q(), 0, guild.F(), false);
handleGuildUnavailable(guild.r(), guild.O(), false);
if (!guild.O()) {
handleGuildRoles(guild.r(), 0, guild.G(), false);
handleGuild(guild, false);
List<com.discord.api.guildmember.GuildMember> u = guild.u();
if (u == null || (map = GuildUtilsKt.asMap(u)) == null) {
List<com.discord.api.guildmember.GuildMember> v = guild.v();
if (v == null || (map = GuildUtilsKt.asMap(v)) == null) {
map = h0.emptyMap();
}
handleGuildMembersMap(guild.q(), map);
handleHasRoleAndJoinedAt(guild.q(), map);
handleGuildMembersMap(guild.r(), map);
handleHasRoleAndJoinedAt(guild.r(), map);
}
}
@ -412,10 +412,10 @@ public final class StoreGuilds extends StoreV2 {
@StoreThread
public final void handleGuildRemove(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild");
handleGuildUnavailable(guild.q(), guild.N(), true);
handleGuildUnavailable(guild.r(), guild.O(), true);
handleGuild(guild, true);
handleGuildRoles(guild.q(), 0, null, true);
handleGuildMembers(guild.q(), 0, null, true);
handleGuildRoles(guild.r(), 0, null, true);
handleGuildMembers(guild.r(), 0, null, true);
}
@StoreThread

View File

@ -46,7 +46,7 @@ public final class StoreInstantInvites$fetchInviteIfNotLoaded$1 extends o implem
Channel channel2;
Guild guild;
StoreInstantInvites$fetchInviteIfNotLoaded$1 storeInstantInvites$fetchInviteIfNotLoaded$1 = this.this$0;
return new TrackNetworkActionInviteResolve(storeInstantInvites$fetchInviteIfNotLoaded$1.$inviteResolved, storeInstantInvites$fetchInviteIfNotLoaded$1.$inviteCode, Boolean.valueOf(StoreStream.Companion.getAuthentication().isAuthed()), (modelInvite == null || (guild = modelInvite.getGuild()) == null) ? null : Long.valueOf(guild.q()), (modelInvite == null || (channel2 = modelInvite.getChannel()) == null) ? null : Long.valueOf(channel2.h()), (modelInvite == null || (channel = modelInvite.getChannel()) == null) ? null : Long.valueOf((long) channel.A()), (modelInvite == null || (inviter = modelInvite.getInviter()) == null) ? null : Long.valueOf(inviter.i()), modelInvite != null ? Long.valueOf((long) modelInvite.getApproximateMemberCount()) : null, modelInvite != null ? Long.valueOf((long) modelInvite.getApproximatePresenceCount()) : null, modelInvite != null ? modelInvite.getInviteType() : null, null, modelInvite != null ? Boolean.valueOf(m.areEqual(modelInvite.code, String.valueOf((int) RestAPIAbortCodes.USER_BANNED))) : null, null);
return new TrackNetworkActionInviteResolve(storeInstantInvites$fetchInviteIfNotLoaded$1.$inviteResolved, storeInstantInvites$fetchInviteIfNotLoaded$1.$inviteCode, Boolean.valueOf(StoreStream.Companion.getAuthentication().isAuthed()), (modelInvite == null || (guild = modelInvite.getGuild()) == null) ? null : Long.valueOf(guild.r()), (modelInvite == null || (channel2 = modelInvite.getChannel()) == null) ? null : Long.valueOf(channel2.h()), (modelInvite == null || (channel = modelInvite.getChannel()) == null) ? null : Long.valueOf((long) channel.A()), (modelInvite == null || (inviter = modelInvite.getInviter()) == null) ? null : Long.valueOf(inviter.i()), modelInvite != null ? Long.valueOf((long) modelInvite.getApproximateMemberCount()) : null, modelInvite != null ? Long.valueOf((long) modelInvite.getApproximatePresenceCount()) : null, modelInvite != null ? modelInvite.getInviteType() : null, null, modelInvite != null ? Boolean.valueOf(m.areEqual(modelInvite.code, String.valueOf((int) RestAPIAbortCodes.USER_BANNED))) : null, null);
}
}

View File

@ -23,7 +23,7 @@ public final class StoreInstantInvites$onInviteRemoved$1 extends o implements Fu
public final void mo1invoke() {
Map map;
Guild guild = this.$invite.getGuild();
Long valueOf = guild != null ? Long.valueOf(guild.q()) : null;
Long valueOf = guild != null ? Long.valueOf(guild.r()) : null;
String str = this.$invite.code;
if (valueOf != null && (map = (Map) StoreInstantInvites.access$getInvites$p(this.this$0).get(valueOf)) != null && ((ModelInvite) map.remove(str)) != null) {
this.this$0.markChanged();

View File

@ -200,7 +200,7 @@ public final class StoreInstantInvites extends StoreV2 {
this.invites.clear();
for (ModelInvite modelInvite : list) {
Guild guild = modelInvite.getGuild();
Long valueOf = guild != null ? Long.valueOf(guild.q()) : null;
Long valueOf = guild != null ? Long.valueOf(guild.r()) : null;
if (valueOf != null) {
Map<String, ModelInvite> map = this.invites.get(valueOf);
if (map == null) {

View File

@ -332,20 +332,20 @@ public final class StoreLurking {
public final void handleGuildAdd$app_productionCanaryRelease(com.discord.api.guild.Guild guild) {
LurkContext lurkContext;
m.checkNotNullParameter(guild, "guild");
if (!this.lurkedGuilds.keySet().contains(Long.valueOf(guild.q()))) {
if (!this.lurkedGuilds.keySet().contains(Long.valueOf(guild.r()))) {
return;
}
if (guild.r() == null && (lurkContext = this.lurkedGuilds.get(Long.valueOf(guild.q()))) != null && lurkContext.getShouldNavigate()) {
this.stream.getGuildSelected$app_productionCanaryRelease().handleGuildSelected(guild.q());
} else if (guild.r() != null) {
stopLurkingInternal(guild.q());
if (guild.s() == null && (lurkContext = this.lurkedGuilds.get(Long.valueOf(guild.r()))) != null && lurkContext.getShouldNavigate()) {
this.stream.getGuildSelected$app_productionCanaryRelease().handleGuildSelected(guild.r());
} else if (guild.s() != null) {
stopLurkingInternal(guild.r());
}
}
@StoreThread
public final void handleGuildRemove$app_productionCanaryRelease(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild");
stopLurkingInternal(guild.q());
stopLurkingInternal(guild.r());
}
@StoreThread
@ -383,7 +383,7 @@ public final class StoreLurking {
@StoreThread
public final boolean isLurking$app_productionCanaryRelease(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild");
return Companion.access$isLurking(Companion, guild.r() != null, guild.q(), this.lurkedGuilds.keySet());
return Companion.access$isLurking(Companion, guild.s() != null, guild.r(), this.lurkedGuilds.keySet());
}
@StoreThread

View File

@ -322,9 +322,9 @@ public final class StoreMentions extends StoreV2 {
Object obj;
boolean z2;
m.checkNotNullParameter(guild, "guild");
List<GuildMember> u = guild.u();
if (u != null) {
Iterator<T> it = u.iterator();
List<GuildMember> v = guild.v();
if (v != null) {
Iterator<T> it = v.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
@ -344,19 +344,19 @@ public final class StoreMentions extends StoreV2 {
}
GuildMember guildMember = (GuildMember) obj;
if (guildMember != null) {
this.myRoleIds.put(Long.valueOf(guild.q()), guildMember.l());
this.myRoleIds.put(Long.valueOf(guild.r()), guildMember.l());
}
}
List<Channel> g = guild.g();
if (g != null) {
for (Channel channel : g) {
this.channelGuildIds.put(Long.valueOf(channel.h()), Long.valueOf(guild.q()));
this.channelGuildIds.put(Long.valueOf(channel.h()), Long.valueOf(guild.r()));
}
}
List<Channel> M = guild.M();
if (M != null) {
for (Channel channel2 : M) {
this.channelGuildIds.put(Long.valueOf(channel2.h()), Long.valueOf(guild.q()));
List<Channel> N = guild.N();
if (N != null) {
for (Channel channel2 : N) {
this.channelGuildIds.put(Long.valueOf(channel2.h()), Long.valueOf(guild.r()));
}
}
}

View File

@ -544,9 +544,9 @@ public final class StoreMessageAck extends StoreV2 {
List<Guild> guilds = modelPayload.getGuilds();
m.checkNotNullExpressionValue(guilds, "payload.guilds");
for (Guild guild : guilds) {
List<GuildMember> u = guild.u();
if (u != null) {
Iterator<T> it = u.iterator();
List<GuildMember> v = guild.v();
if (v != null) {
Iterator<T> it = v.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;

View File

@ -110,10 +110,10 @@ public final class StoreMessagesMostRecent extends StoreV2 {
if (g != null) {
mostRecentIdsUpdateFromChannels(g);
}
List<Channel> M = guild.M();
if (M != null) {
List<Channel> N = guild.N();
if (N != null) {
Collection<Channel> arrayList = new ArrayList<>();
for (Channel channel : M) {
for (Channel channel : N) {
if (ChannelUtils.C(channel)) {
arrayList.add(channel);
}
@ -131,10 +131,10 @@ public final class StoreMessagesMostRecent extends StoreV2 {
if (g != null) {
mostRecentIdsUpdateFromChannels(g);
}
List<Channel> M = guild.M();
if (M != null) {
List<Channel> N = guild.N();
if (N != null) {
Collection<Channel> arrayList = new ArrayList<>();
for (Channel channel : M) {
for (Channel channel : N) {
if (ChannelUtils.C(channel)) {
arrayList.add(channel);
}

View File

@ -219,7 +219,7 @@ public final class StorePermissions extends StoreV2 {
@StoreThread
public final void handleGuildAdd(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild");
updateGuildPermissions(guild.q(), this.storeChannels.getThreadsForGuildInternal$app_productionCanaryRelease(guild.q()));
updateGuildPermissions(guild.r(), this.storeChannels.getThreadsForGuildInternal$app_productionCanaryRelease(guild.r()));
}
@StoreThread
@ -233,9 +233,9 @@ public final class StorePermissions extends StoreV2 {
@StoreThread
public final void handleGuildRemove(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild");
long q = guild.q();
this.permissionsForChannels.remove(Long.valueOf(q));
this.permissionsForGuilds.remove(Long.valueOf(q));
long r = guild.r();
this.permissionsForChannels.remove(Long.valueOf(r));
this.permissionsForGuilds.remove(Long.valueOf(r));
markChanged();
}

View File

@ -57,7 +57,7 @@ public final class StoreReviewRequest extends Store {
if (!it.hasNext()) {
break;
}
if (((Guild) it.next()).t() >= 5) {
if (((Guild) it.next()).u() >= 5) {
z3 = true;
continue;
} else {

View File

@ -371,9 +371,9 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
return;
}
}
App.a aVar = App.k;
Objects.requireNonNull(App.Companion);
SSLSocketFactory sSLSocketFactory = null;
if (App.j) {
if (App.access$getIS_LOCAL$cp()) {
str = "";
} else {
str = voiceServer.b();

View File

@ -543,11 +543,11 @@ public final class StoreStageChannels extends StoreV2 {
@StoreThread
public final void handleGuildRemove(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild");
if (this.stageEventStates.remove(Long.valueOf(guild.q())) != null) {
if (this.stageEventStates.remove(Long.valueOf(guild.r())) != null) {
markStageEventDirty();
}
LinkedHashSet linkedHashSet = new LinkedHashSet();
for (Number number : this.channelsStore.getChannelsForGuild(guild.q()).keySet()) {
for (Number number : this.channelsStore.getChannelsForGuild(guild.r()).keySet()) {
long longValue = number.longValue();
if (this.stageRolesByChannel.remove(Long.valueOf(longValue)) != null) {
linkedHashSet.add(Long.valueOf(longValue));

View File

@ -114,9 +114,9 @@ public final class StoreStageInstances extends StoreV2 {
@StoreThread
public final void handleGuildAdd(Guild guild) {
m.checkNotNullParameter(guild, "guild");
List<StageInstance> I = guild.I();
if (I != null) {
for (StageInstance stageInstance : I) {
List<StageInstance> J = guild.J();
if (J != null) {
for (StageInstance stageInstance : J) {
handleStageInstanceCreateOrUpdate(stageInstance);
}
}
@ -126,7 +126,7 @@ public final class StoreStageInstances extends StoreV2 {
public final void handleGuildRemove(Guild guild) {
Set<Long> set;
m.checkNotNullParameter(guild, "guild");
Map<Long, StageInstance> remove = this.stageInstancesByGuild.remove(Long.valueOf(guild.q()));
Map<Long, StageInstance> remove = this.stageInstancesByGuild.remove(Long.valueOf(guild.r()));
if (remove == null || (set = remove.keySet()) == null) {
set = n0.emptySet();
}

View File

@ -2179,9 +2179,9 @@ public final class StoreStream {
private final void handleGuildRemove(Guild guild) {
if (guild != null) {
this.guilds.handleGuildRemove(guild);
this.guildMemberCounts.handleGuildDelete(guild.q());
this.guildSubscriptions.handleGuildRemove(guild.q());
this.lazyChannelMembersStore.handleGuildRemove(guild.q());
this.guildMemberCounts.handleGuildDelete(guild.r());
this.guildSubscriptions.handleGuildRemove(guild.r());
this.lazyChannelMembersStore.handleGuildRemove(guild.r());
this.presences.handleGuildRemove(guild);
this.guildSelected.handleGuildRemove(guild);
this.channels.handleGuildRemove(guild);
@ -2194,13 +2194,13 @@ public final class StoreStream {
this.voiceStates.handleGuildRemove(guild);
this.lurking.handleGuildRemove$app_productionCanaryRelease(guild);
this.clientDataState.handleGuildRemove(guild);
this.threadsActive.handleGuildDelete(guild.q());
this.threadsJoined.handleGuildDelete(guild.q());
this.threadsActiveJoined.handleGuildDelete(guild.q());
this.threadMessages.handleGuildDelete(guild.q());
this.guildJoinRequests.handleGuildRemove(guild.q());
this.guildStickers.handleGuildRemove(guild.q());
this.guildScheduledEvents.handleGuildRemove(guild.q());
this.threadsActive.handleGuildDelete(guild.r());
this.threadsJoined.handleGuildDelete(guild.r());
this.threadsActiveJoined.handleGuildDelete(guild.r());
this.threadMessages.handleGuildDelete(guild.r());
this.guildJoinRequests.handleGuildRemove(guild.r());
this.guildStickers.handleGuildRemove(guild.r());
this.guildScheduledEvents.handleGuildRemove(guild.r());
}
}

View File

@ -27,6 +27,7 @@ import com.discord.utilities.systemlog.SystemLogUtils;
import com.discord.utilities.time.Clock;
import d0.z.d.m;
import java.util.Map;
import java.util.Objects;
import javax.net.ssl.SSLSocketFactory;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.DefaultConstructorMarker;
@ -562,9 +563,9 @@ public final class StoreStreamRtcConnection extends StoreV2 implements DebugPrin
@StoreThread
public final void handleStreamServerUpdate(StreamServerUpdate streamServerUpdate) {
m.checkNotNullParameter(streamServerUpdate, "streamServerUpdate");
App.a aVar = App.k;
Objects.requireNonNull(App.Companion);
SSLSocketFactory sSLSocketFactory = null;
if (!App.j) {
if (!App.access$getIS_LOCAL$cp()) {
sSLSocketFactory = SecureSocketsLayerUtils.createSocketFactory$default(null, 1, null);
}
StringBuilder R = a.R("Voice stream update, connect to server w/ endpoint: ");

View File

@ -203,9 +203,9 @@ public final class StoreThreadMessages extends StoreV2 {
@StoreThread
private final void updateFromGuild(Guild guild) {
List<Channel> M = guild.M();
if (M != null) {
for (Channel channel : M) {
List<Channel> N = guild.N();
if (N != null) {
for (Channel channel : N) {
updateFromThread(channel);
}
}

View File

@ -109,10 +109,10 @@ public final class StoreThreadsActive extends StoreV2 {
private final void saveThreads(Guild guild) {
ThreadMetadata y2;
List<Channel> threadsForGuildInternal$app_productionCanaryRelease = this.storeChannels.getThreadsForGuildInternal$app_productionCanaryRelease(guild.q());
List<Channel> threadsForGuildInternal$app_productionCanaryRelease = this.storeChannels.getThreadsForGuildInternal$app_productionCanaryRelease(guild.r());
if (!threadsForGuildInternal$app_productionCanaryRelease.isEmpty()) {
Map<Long, Map<Long, Channel>> map = this.threadsByGuild;
Long valueOf = Long.valueOf(guild.q());
Long valueOf = Long.valueOf(guild.r());
ArrayList arrayList = new ArrayList();
for (Object obj : threadsForGuildInternal$app_productionCanaryRelease) {
Channel channel = (Channel) obj;
@ -172,7 +172,7 @@ public final class StoreThreadsActive extends StoreV2 {
@StoreThread
public final void handleGuildCreate(Guild guild) {
m.checkNotNullParameter(guild, "guild");
deleteThreads(guild.q());
deleteThreads(guild.r());
saveThreads(guild);
}

View File

@ -216,7 +216,7 @@ public final class StoreThreadsActiveJoined extends StoreV2 {
@StoreThread
public final void handleGuildCreate(Guild guild) {
m.checkNotNullParameter(guild, "guild");
saveThreads(Long.valueOf(guild.q()));
saveThreads(Long.valueOf(guild.r()));
}
@StoreThread

View File

@ -202,11 +202,11 @@ public final class StoreThreadsJoined extends StoreV2 {
private final void saveThreads(Guild guild) {
ThreadMember j;
List<Channel> M = guild.M();
if (M != null) {
for (Channel channel : M) {
List<Channel> N = guild.N();
if (N != null) {
for (Channel channel : N) {
if (ChannelUtils.C(channel) && (j = channel.j()) != null) {
this.joinedThreads.put(Long.valueOf(channel.h()), new JoinedThread(channel.h(), guild.q(), j.a(), j.e(), new ModelMuteConfig(j.d()), j.c()));
this.joinedThreads.put(Long.valueOf(channel.h()), new JoinedThread(channel.h(), guild.r(), j.a(), j.e(), new ModelMuteConfig(j.d()), j.c()));
markChanged();
}
}
@ -238,7 +238,7 @@ public final class StoreThreadsJoined extends StoreV2 {
@StoreThread
public final void handleGuildCreate(Guild guild) {
m.checkNotNullParameter(guild, "guild");
deleteThreads(guild.q());
deleteThreads(guild.r());
saveThreads(guild);
}

View File

@ -255,9 +255,9 @@ public final class StoreUser extends StoreV2 {
}
}
for (Guild guild : modelPayload.getGuilds()) {
List<GuildMember> u = guild.u();
if (u != null) {
for (GuildMember guildMember : u) {
List<GuildMember> v = guild.v();
if (v != null) {
for (GuildMember guildMember : v) {
this.users.put(Long.valueOf(guildMember.m().i()), new CoreUser(guildMember.m()));
}
}
@ -289,9 +289,9 @@ public final class StoreUser extends StoreV2 {
@StoreThread
public final void handleGuildAddOrSync(Guild guild) {
m.checkNotNullParameter(guild, "guild");
List<GuildMember> u = guild.u();
if (u != null) {
for (GuildMember guildMember : u) {
List<GuildMember> v = guild.v();
if (v != null) {
for (GuildMember guildMember : v) {
updateUser(guildMember.m());
}
}

View File

@ -467,12 +467,12 @@ public final class StoreUserPresence extends StoreV2 {
@StoreThread
public final void handleGuildAdd(Guild guild) {
m.checkNotNullParameter(guild, "guild");
List<com.discord.api.presence.Presence> C = guild.C();
if (C != null) {
for (com.discord.api.presence.Presence presence : C) {
List<com.discord.api.presence.Presence> D = guild.D();
if (D != null) {
for (com.discord.api.presence.Presence presence : D) {
User f = presence.f();
if (f != null) {
handlePresenceUpdate(guild.q(), f.i(), presence.e(), presence.c(), presence.b());
handlePresenceUpdate(guild.r(), f.i(), presence.e(), presence.c(), presence.b());
}
}
}
@ -489,7 +489,7 @@ public final class StoreUserPresence extends StoreV2 {
@StoreThread
public final void handleGuildRemove(Guild guild) {
m.checkNotNullParameter(guild, "guild");
clearPresences(guild.q());
clearPresences(guild.r());
}
@StoreThread

View File

@ -156,10 +156,10 @@ public final class StoreVoiceStates extends StoreV2 {
List<Guild> guilds = modelPayload.getGuilds();
m.checkNotNullExpressionValue(guilds, "payload.guilds");
for (Guild guild : guilds) {
List<VoiceState> Q = guild.Q();
if (Q != null) {
for (VoiceState voiceState : Q) {
updateVoiceState(voiceState, Long.valueOf(guild.q()));
List<VoiceState> R = guild.R();
if (R != null) {
for (VoiceState voiceState : R) {
updateVoiceState(voiceState, Long.valueOf(guild.r()));
}
}
}
@ -168,10 +168,10 @@ public final class StoreVoiceStates extends StoreV2 {
@StoreThread
public final void handleGuildAdd(Guild guild) {
m.checkNotNullParameter(guild, "guild");
List<VoiceState> Q = guild.Q();
if (Q != null) {
for (VoiceState voiceState : Q) {
updateVoiceState(voiceState, Long.valueOf(guild.q()));
List<VoiceState> R = guild.R();
if (R != null) {
for (VoiceState voiceState : R) {
updateVoiceState(voiceState, Long.valueOf(guild.r()));
}
}
}
@ -179,8 +179,8 @@ public final class StoreVoiceStates extends StoreV2 {
@StoreThread
public final void handleGuildRemove(Guild guild) {
m.checkNotNullParameter(guild, "guild");
this.voiceStates.remove(Long.valueOf(guild.q()));
this.dirtyGuildIds.add(Long.valueOf(guild.q()));
this.voiceStates.remove(Long.valueOf(guild.r()));
this.dirtyGuildIds.add(Long.valueOf(guild.r()));
markChanged();
}

View File

@ -610,7 +610,7 @@ public final class AnalyticsTracker {
String str2 = modelInvite.code;
m.checkNotNullExpressionValue(str2, "invite.code");
com.discord.api.guild.Guild guild = modelInvite.getGuild();
Long valueOf = guild != null ? Long.valueOf(guild.q()) : null;
Long valueOf = guild != null ? Long.valueOf(guild.r()) : null;
Channel channel = modelInvite.getChannel();
Long valueOf2 = channel != null ? Long.valueOf(channel.h()) : null;
Channel channel2 = modelInvite.getChannel();
@ -652,7 +652,7 @@ public final class AnalyticsTracker {
String str = modelInvite.code;
m.checkNotNullExpressionValue(str, "invite.code");
com.discord.api.guild.Guild guild = modelInvite.getGuild();
Long valueOf = guild != null ? Long.valueOf(guild.q()) : null;
Long valueOf = guild != null ? Long.valueOf(guild.r()) : null;
Channel channel = modelInvite.getChannel();
Long valueOf2 = channel != null ? Long.valueOf(channel.h()) : null;
Channel channel2 = modelInvite.getChannel();
@ -1458,7 +1458,7 @@ public final class AnalyticsTracker {
}
com.discord.api.guild.Guild guild = modelInvite.getGuild();
if (guild != null) {
mutableMapOf.put(ModelAuditLogEntry.CHANGE_KEY_GUILD_ID, Long.valueOf(guild.q()));
mutableMapOf.put(ModelAuditLogEntry.CHANGE_KEY_GUILD_ID, Long.valueOf(guild.r()));
}
User inviter = modelInvite.getInviter();
if (inviter != null) {
@ -1582,7 +1582,7 @@ public final class AnalyticsTracker {
}
com.discord.api.guild.Guild guild = modelInvite.getGuild();
if (guild != null) {
map.put("invite_guild_id", Long.valueOf(guild.q()));
map.put("invite_guild_id", Long.valueOf(guild.r()));
}
User inviter = modelInvite.getInviter();
if (inviter != null) {

View File

@ -7,7 +7,7 @@ import c.a.a.d;
import c.a.d.j;
import c.a.k.b;
import com.discord.R;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.app.AppFragment;
import com.discord.dialogs.SimpleConfirmationDialogArgs;
import com.discord.utilities.directories.DirectoryUtils;
@ -24,7 +24,7 @@ import kotlin.jvm.functions.Function1;
/* compiled from: DirectoryUtils.kt */
public final class DirectoryUtils$showServerOptions$2 extends o implements Function1<Integer, Unit> {
public final /* synthetic */ Context $context;
public final /* synthetic */ DirectoryEntry $directoryEntry;
public final /* synthetic */ DirectoryEntryGuild $directoryEntry;
public final /* synthetic */ AppFragment $fragment;
public final /* synthetic */ String $hubName;
public final /* synthetic */ List $options;
@ -46,11 +46,11 @@ public final class DirectoryUtils$showServerOptions$2 extends o implements Funct
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public DirectoryUtils$showServerOptions$2(List list, Context context, DirectoryEntry directoryEntry, String str, AppFragment appFragment, Function0 function0) {
public DirectoryUtils$showServerOptions$2(List list, Context context, DirectoryEntryGuild directoryEntryGuild, String str, AppFragment appFragment, Function0 function0) {
super(1);
this.$options = list;
this.$context = context;
this.$directoryEntry = directoryEntry;
this.$directoryEntry = directoryEntryGuild;
this.$hubName = str;
this.$fragment = appFragment;
this.$removeGuildListener = function0;

View File

@ -7,7 +7,7 @@ import androidx.fragment.app.FragmentManager;
import c.a.y.b0;
import c.a.y.c0;
import com.discord.R;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.app.AppFragment;
import d0.t.m;
import d0.t.n;
@ -62,9 +62,9 @@ public final class DirectoryUtils {
private DirectoryUtils() {
}
public final void showServerOptions(AppFragment appFragment, DirectoryEntry directoryEntry, String str, boolean z2, Function0<Unit> function0) {
public final void showServerOptions(AppFragment appFragment, DirectoryEntryGuild directoryEntryGuild, String str, boolean z2, Function0<Unit> function0) {
d0.z.d.m.checkNotNullParameter(appFragment, "fragment");
d0.z.d.m.checkNotNullParameter(directoryEntry, "directoryEntry");
d0.z.d.m.checkNotNullParameter(directoryEntryGuild, "directoryEntry");
d0.z.d.m.checkNotNullParameter(str, "hubName");
d0.z.d.m.checkNotNullParameter(function0, "removeGuildListener");
Context context = appFragment.getContext();
@ -80,7 +80,7 @@ public final class DirectoryUtils {
for (DirectoryServerMenuOptions directoryServerMenuOptions : list) {
arrayList.add(new c0(appFragment.getString(directoryServerMenuOptions.getTitleRes()), null, Integer.valueOf(directoryServerMenuOptions.getIconRes()), null, null, null, null, 122));
}
aVar.a(childFragmentManager, string, arrayList, false, new DirectoryUtils$showServerOptions$2(list, context, directoryEntry, str, appFragment, function0));
aVar.a(childFragmentManager, string, arrayList, false, new DirectoryUtils$showServerOptions$2(list, context, directoryEntryGuild, str, appFragment, function0));
}
}
}

View File

@ -1,6 +1,6 @@
package com.discord.utilities.directories;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.widgets.directories.DirectoryEntryData;
import d0.t.u;
import d0.z.d.m;
@ -14,9 +14,9 @@ public final class DirectoryUtilsKt {
private static final int MINIMUM_MEMBER_COUNT = 5;
private static final int MINIMUM_SIZE = 5;
public static final boolean hasMinimumMemberCount(DirectoryEntry directoryEntry) {
m.checkNotNullParameter(directoryEntry, "$this$hasMinimumMemberCount");
Integer a = directoryEntry.e().a();
public static final boolean hasMinimumMemberCount(DirectoryEntryGuild directoryEntryGuild) {
m.checkNotNullParameter(directoryEntryGuild, "$this$hasMinimumMemberCount");
Integer a = directoryEntryGuild.e().a();
return (a != null ? a.intValue() : 0) >= 5;
}

View File

@ -1,6 +1,7 @@
package com.discord.utilities.experiments;
import com.discord.api.guild.GuildFeature;
import com.discord.api.guild.GuildHubType;
import com.discord.models.experiments.domain.ExperimentHash;
import com.discord.models.experiments.dto.GuildExperimentBucketDto;
import com.discord.models.experiments.dto.GuildExperimentDto;
@ -24,16 +25,20 @@ public final class ExperimentUtils {
private ExperimentUtils() {
}
/* JADX WARNING: Removed duplicated region for block: B:102:0x0145 A[EDGE_INSN: B:102:0x0145->B:70:0x0145 ?: BREAK , SYNTHETIC] */
/* JADX WARNING: Removed duplicated region for block: B:89:0x0095 A[SYNTHETIC] */
/* JADX WARNING: Removed duplicated region for block: B:96:0x0074 A[SYNTHETIC] */
/* JADX WARNING: Removed duplicated region for block: B:113:0x00a0 A[SYNTHETIC] */
/* JADX WARNING: Removed duplicated region for block: B:116:0x00a0 A[SYNTHETIC] */
/* JADX WARNING: Removed duplicated region for block: B:121:0x007c A[SYNTHETIC] */
/* JADX WARNING: Removed duplicated region for block: B:123:0x007c A[SYNTHETIC] */
public final int computeGuildExperimentBucket(String str, long j, int i, Guild guild, GuildExperimentDto guildExperimentDto) {
Object obj;
boolean z2;
boolean z3;
boolean z4;
boolean z5;
m.checkNotNullParameter(str, "experimentName");
boolean z6;
boolean z7;
String str2 = str;
m.checkNotNullParameter(str2, "experimentName");
m.checkNotNullParameter(guildExperimentDto, "experiment");
for (GuildExperimentOverridesDto guildExperimentOverridesDto : guildExperimentDto.getOverrides()) {
if (guildExperimentOverridesDto.getGuilds().contains(Long.valueOf(j))) {
@ -43,33 +48,40 @@ public final class ExperimentUtils {
StringBuilder sb = new StringBuilder();
String hashKey = guildExperimentDto.getHashKey();
if (hashKey != null) {
str = hashKey;
str2 = hashKey;
}
sb.append(str);
sb.append(str2);
sb.append(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR);
sb.append(j);
long from = ExperimentHash.INSTANCE.from(sb.toString()) % ((long) 10000);
for (GuildExperimentPopulationDto guildExperimentPopulationDto : guildExperimentDto.getPopulations()) {
boolean z6 = true;
for (GuildExperimentFilter guildExperimentFilter : guildExperimentPopulationDto.getFilters()) {
if (guildExperimentFilter instanceof GuildExperimentFilter.GuildIdsFilter) {
if (!((GuildExperimentFilter.GuildIdsFilter) guildExperimentFilter).getGuildIds().contains(Long.valueOf(j))) {
Iterator<GuildExperimentFilter> it = guildExperimentPopulationDto.getFilters().iterator();
boolean z8 = true;
while (true) {
obj = null;
if (!it.hasNext()) {
break;
}
GuildExperimentFilter next = it.next();
if (next instanceof GuildExperimentFilter.GuildIdsFilter) {
if (!((GuildExperimentFilter.GuildIdsFilter) next).getGuildIds().contains(Long.valueOf(j))) {
}
} else if (guildExperimentFilter instanceof GuildExperimentFilter.GuildIdRangeFilter) {
if (!((GuildExperimentFilter.GuildIdRangeFilter) guildExperimentFilter).getRange().contains(j)) {
} else if (next instanceof GuildExperimentFilter.GuildIdRangeFilter) {
if (!((GuildExperimentFilter.GuildIdRangeFilter) next).getRange().contains(j)) {
}
} else if (guildExperimentFilter instanceof GuildExperimentFilter.GuildMemberCountRangeFilter) {
if (!f.longRangeContains(((GuildExperimentFilter.GuildMemberCountRangeFilter) guildExperimentFilter).getRange(), i)) {
} else if (next instanceof GuildExperimentFilter.GuildMemberCountRangeFilter) {
if (!f.longRangeContains(((GuildExperimentFilter.GuildMemberCountRangeFilter) next).getRange(), i)) {
z8 = false;
}
} else if (guildExperimentFilter instanceof GuildExperimentFilter.GuildHasFeatureFilter) {
Set<GuildFeature> features = ((GuildExperimentFilter.GuildHasFeatureFilter) guildExperimentFilter).getFeatures();
} else if (next instanceof GuildExperimentFilter.GuildHasFeatureFilter) {
Set<GuildFeature> features = ((GuildExperimentFilter.GuildHasFeatureFilter) next).getFeatures();
if (!(features instanceof Collection) || !features.isEmpty()) {
Iterator<T> it = features.iterator();
Iterator<T> it2 = features.iterator();
while (true) {
if (!it.hasNext()) {
if (!it2.hasNext()) {
break;
}
GuildFeature guildFeature = (GuildFeature) it.next();
GuildFeature guildFeature = (GuildFeature) it2.next();
if (guild == null || !guild.hasFeature(guildFeature)) {
z5 = false;
continue;
@ -83,30 +95,57 @@ public final class ExperimentUtils {
}
}
if (!z4) {
z8 = false;
}
}
z4 = true;
if (!z4) {
}
}
z6 = false;
}
if (z6) {
Iterator<T> it2 = guildExperimentPopulationDto.getBuckets().iterator();
while (true) {
if (!it2.hasNext()) {
obj = null;
break;
}
obj = it2.next();
List<IntRange> positions = ((GuildExperimentBucketDto) obj).getPositions();
if (!(positions instanceof Collection) || !positions.isEmpty()) {
Iterator<T> it3 = positions.iterator();
} else if (next instanceof GuildExperimentFilter.GuildHubTypesFeatureFilter) {
Set<GuildHubType> hubTypes = ((GuildExperimentFilter.GuildHubTypesFeatureFilter) next).getHubTypes();
if (!(hubTypes instanceof Collection) || !hubTypes.isEmpty()) {
Iterator<T> it3 = hubTypes.iterator();
while (true) {
if (!it3.hasNext()) {
break;
}
IntRange intRange = (IntRange) it3.next();
if ((guild != null ? guild.getHubType() : null) == ((GuildHubType) it3.next())) {
z7 = true;
continue;
} else {
z7 = false;
continue;
}
if (z7) {
z6 = false;
break;
}
}
if (!z6) {
z8 = false;
}
}
z6 = true;
if (!z6) {
}
}
z8 = false;
}
if (z8) {
Iterator<T> it4 = guildExperimentPopulationDto.getBuckets().iterator();
while (true) {
if (!it4.hasNext()) {
break;
}
Object next2 = it4.next();
List<IntRange> positions = ((GuildExperimentBucketDto) next2).getPositions();
if (!(positions instanceof Collection) || !positions.isEmpty()) {
Iterator<T> it5 = positions.iterator();
while (true) {
if (!it5.hasNext()) {
break;
}
IntRange intRange = (IntRange) it5.next();
if (from < ((long) intRange.getFirst()) || from >= ((long) intRange.getLast())) {
z3 = false;
continue;
@ -120,13 +159,12 @@ public final class ExperimentUtils {
break;
}
}
if (z2) {
break;
}
}
z2 = false;
continue;
if (z2) {
obj = next2;
break;
}
}
GuildExperimentBucketDto guildExperimentBucketDto = (GuildExperimentBucketDto) obj;

View File

@ -41,6 +41,10 @@ public final class GrowthTeamFeatures {
return growthTeamFeatures.isExperimentEnabled(str, i, z2);
}
public final boolean hubEventsEnabled(boolean z2) {
return isExperimentEnabled("2021-11_hub_events", 1, z2);
}
public final boolean hubRankingsEnabled() {
return isExperimentEnabled$default(this, "2021-10_hubs_recs_and_rankings", 1, false, 2, null) || isExperimentEnabled$default(this, "2021-10_hubs_recs_and_rankings", 3, false, 2, null);
}

View File

@ -40,7 +40,7 @@ public final class GuildUtilsKt {
public static final Guild createApiGuild(com.discord.models.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild");
return new Guild(guild.getRoles(), guild.getEmojis(), guild.getStickers(), guild.getName(), guild.getDescription(), Integer.valueOf(guild.getDefaultMessageNotifications()), guild.getId(), guild.getRegion(), guild.getOwnerId(), guild.getIcon(), guild.getVerificationLevel(), guild.getExplicitContentFilter(), null, null, null, null, guild.getUnavailable(), guild.getMfaLevel(), guild.getAfkTimeout(), guild.getAfkChannelId(), guild.getSystemChannelId(), u.toList(guild.getFeatures()), guild.getMemberCount(), guild.getBanner(), guild.getSplash(), guild.getPremiumTier(), guild.getPremiumSubscriptionCount(), guild.getSystemChannelFlags(), guild.getJoinedAt(), guild.getRulesChannelId(), guild.getPublicUpdatesChannelId(), guild.getPreferredLocale(), guild.getWelcomeScreen(), guild.getMaxVideoChannelUsers(), guild.getVanityUrlCode(), 0, guild.getApproximatePresenceCount(), null, null, null, null, guild.getNsfw(), null, null, n.emptyList());
return new Guild(guild.getRoles(), guild.getEmojis(), guild.getStickers(), guild.getName(), guild.getDescription(), Integer.valueOf(guild.getDefaultMessageNotifications()), guild.getId(), guild.getRegion(), guild.getOwnerId(), guild.getIcon(), guild.getVerificationLevel(), guild.getExplicitContentFilter(), null, null, null, null, guild.getUnavailable(), guild.getMfaLevel(), guild.getAfkTimeout(), guild.getAfkChannelId(), guild.getSystemChannelId(), u.toList(guild.getFeatures()), guild.getMemberCount(), guild.getBanner(), guild.getSplash(), guild.getPremiumTier(), guild.getPremiumSubscriptionCount(), guild.getSystemChannelFlags(), guild.getJoinedAt(), guild.getRulesChannelId(), guild.getPublicUpdatesChannelId(), guild.getPreferredLocale(), guild.getWelcomeScreen(), guild.getMaxVideoChannelUsers(), guild.getVanityUrlCode(), 0, guild.getApproximatePresenceCount(), null, null, null, null, guild.getNsfw(), null, null, n.emptyList(), guild.getHubType());
}
public static final GuildRole getGuildRole(Long l) {

View File

@ -64,7 +64,7 @@ public final class MemberVerificationUtils {
String str;
com.discord.api.guild.Guild guild2;
if (guild == null || (str = guild.getName()) == null) {
str = (modelInvite == null || (guild2 = modelInvite.getGuild()) == null) ? null : guild2.w();
str = (modelInvite == null || (guild2 = modelInvite.getGuild()) == null) ? null : guild2.x();
}
if (str != null && guild != null) {
MemberVerificationSuccessDialog.Companion.enqueue(guild.getId());

View File

@ -759,7 +759,7 @@ public final class IconUtils {
}
/* JADX WARNING: Code restructure failed: missing block: B:20:0x005e, code lost:
if (r0 != null) goto L_0x0064;
if (r0 != null) goto L_0x0063;
*/
public final String getGiftSplashUrl(long j, String str, Integer num) {
String str2;

View File

@ -17,7 +17,8 @@ import com.discord.api.channel.Channel;
import com.discord.api.commands.ApplicationCommand;
import com.discord.api.commands.ApplicationCommandData;
import com.discord.api.connectedaccounts.ConnectedAccount;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryEvent;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.api.fingerprint.FingerprintResponse;
import com.discord.api.friendsuggestions.BulkAddFriendsResponse;
import com.discord.api.friendsuggestions.BulkFriendSuggestions;
@ -591,7 +592,7 @@ public final class RestAPI implements RestAPIInterface {
@Override // com.discord.restapi.RestAPIInterface
@o("channels/{channelId}/directory-entry/{guildId}")
public Observable<Response<DirectoryEntry>> addServerToHub(@s("channelId") long j, @s("guildId") long j2, @i0.f0.a RestAPIParams.AddServerBody addServerBody) {
public Observable<Response<DirectoryEntryGuild>> addServerToHub(@s("channelId") long j, @s("guildId") long j2, @i0.f0.a RestAPIParams.AddServerBody addServerBody) {
m.checkNotNullParameter(addServerBody, "body");
return this._api.addServerToHub(j, j2, addServerBody);
}
@ -1185,10 +1186,16 @@ public final class RestAPI implements RestAPIInterface {
@Override // com.discord.restapi.RestAPIInterface
@f("channels/{channelId}/directory-entries")
public Observable<List<DirectoryEntry>> getDirectoryEntries(@s("channelId") long j) {
public Observable<List<DirectoryEntryGuild>> getDirectoryEntries(@s("channelId") long j) {
return this._api.getDirectoryEntries(j);
}
@Override // com.discord.restapi.RestAPIInterface
@f("channels/{channelId}/directory-entries")
public Observable<List<DirectoryEntryEvent>> getDirectoryGuildScheduledEvents(@s("channelId") long j, @t("type") int i) {
return this._api.getDirectoryGuildScheduledEvents(j, i);
}
@Override // com.discord.restapi.RestAPIInterface
@f("emojis/{emojiId}/guild")
public Observable<Guild> getEmojiGuild(@s("emojiId") long j) {
@ -1670,7 +1677,7 @@ public final class RestAPI implements RestAPIInterface {
@Override // com.discord.restapi.RestAPIInterface
@i0.f0.n("channels/{channelId}/directory-entry/{guildId}")
public Observable<DirectoryEntry> modifyServerInHub(@s("channelId") long j, @s("guildId") long j2, @i0.f0.a RestAPIParams.AddServerBody addServerBody) {
public Observable<DirectoryEntryGuild> modifyServerInHub(@s("channelId") long j, @s("guildId") long j2, @i0.f0.a RestAPIParams.AddServerBody addServerBody) {
m.checkNotNullParameter(addServerBody, "body");
return this._api.modifyServerInHub(j, j2, addServerBody);
}
@ -1781,7 +1788,7 @@ public final class RestAPI implements RestAPIInterface {
Pair<String, ? extends Object>[] pairArr = new Pair[5];
pairArr[0] = d0.o.to(ModelAuditLogEntry.CHANGE_KEY_LOCATION, str);
Guild guild = modelInvite.getGuild();
pairArr[1] = d0.o.to("location_guild_id", guild != null ? Long.valueOf(guild.q()) : null);
pairArr[1] = d0.o.to("location_guild_id", guild != null ? Long.valueOf(guild.r()) : null);
Channel channel = modelInvite.getChannel();
pairArr[2] = d0.o.to("location_channel_id", channel != null ? Long.valueOf(channel.h()) : null);
Channel channel2 = modelInvite.getChannel();
@ -1899,7 +1906,7 @@ public final class RestAPI implements RestAPIInterface {
@Override // com.discord.restapi.RestAPIInterface
@b("channels/{channelId}/directory-entry/{guildId}")
public Observable<Response<DirectoryEntry>> removeServerFromHub(@s("channelId") long j, @s("guildId") long j2) {
public Observable<Response<DirectoryEntryGuild>> removeServerFromHub(@s("channelId") long j, @s("guildId") long j2) {
return this._api.removeServerFromHub(j, j2);
}
@ -2001,7 +2008,7 @@ public final class RestAPI implements RestAPIInterface {
@Override // com.discord.restapi.RestAPIInterface
@f("channels/{channelId}/directory-entries/search")
public Observable<List<DirectoryEntry>> searchServers(@s("channelId") long j, @t("query") String str) {
public Observable<List<DirectoryEntryGuild>> searchServers(@s("channelId") long j, @t("query") String str) {
m.checkNotNullParameter(str, "query");
return this._api.searchServers(j, str);
}

View File

@ -1,21 +1,21 @@
package com.discord.utilities.rx;
import kotlin.jvm.functions.Function19;
import rx.functions.Func3;
import kotlin.jvm.functions.Function20;
import rx.functions.Func4;
/* compiled from: ObservableCombineLatestOverloads.kt */
public final class ObservableCombineLatestOverloadsKt$combineLatest$8<T1, T2, T3, R> implements Func3<Holder<T1, T2, T3, T4, T5, T6, T7, T8, T9>, Holder<T10, T11, T12, T13, T14, T15, T16, T17, T18>, T19, R> {
public final /* synthetic */ Function19 $combineFunction;
public final class ObservableCombineLatestOverloadsKt$combineLatest$8<T1, T2, T3, T4, R> implements Func4<Holder<T1, T2, T3, T4, T5, T6, T7, T8, T9>, Holder<T10, T11, T12, T13, T14, T15, T16, T17, T18>, T19, T20, R> {
public final /* synthetic */ Function20 $combineFunction;
public ObservableCombineLatestOverloadsKt$combineLatest$8(Function19 function19) {
this.$combineFunction = function19;
public ObservableCombineLatestOverloadsKt$combineLatest$8(Function20 function20) {
this.$combineFunction = function20;
}
public final R call(Holder<T1, T2, T3, T4, T5, T6, T7, T8, T9> holder, Holder<T10, T11, T12, T13, T14, T15, T16, T17, T18> holder2, T19 t19) {
return (R) this.$combineFunction.invoke(holder.getT1(), holder.getT2(), holder.getT3(), holder.getT4(), holder.getT5(), holder.getT6(), holder.getT7(), holder.getT8(), holder.getT9(), holder2.getT1(), holder2.getT2(), holder2.getT3(), holder2.getT4(), holder2.getT5(), holder2.getT6(), holder2.getT7(), holder2.getT8(), holder2.getT9(), t19);
public final R call(Holder<T1, T2, T3, T4, T5, T6, T7, T8, T9> holder, Holder<T10, T11, T12, T13, T14, T15, T16, T17, T18> holder2, T19 t19, T20 t20) {
return (R) this.$combineFunction.invoke(holder.getT1(), holder.getT2(), holder.getT3(), holder.getT4(), holder.getT5(), holder.getT6(), holder.getT7(), holder.getT8(), holder.getT9(), holder2.getT1(), holder2.getT2(), holder2.getT3(), holder2.getT4(), holder2.getT5(), holder2.getT6(), holder2.getT7(), holder2.getT8(), holder2.getT9(), t19, t20);
}
@Override // rx.functions.Func3
public /* bridge */ /* synthetic */ Object call(Object obj, Object obj2, Object obj3) {
return call((Holder) ((Holder) obj), (Holder) ((Holder) obj2), (Holder<T10, T11, T12, T13, T14, T15, T16, T17, T18>) obj3);
@Override // rx.functions.Func4
public /* bridge */ /* synthetic */ Object call(Object obj, Object obj2, Object obj3, Object obj4) {
return call((Holder) ((Holder) obj), (Holder) ((Holder) obj2), (Holder<T10, T11, T12, T13, T14, T15, T16, T17, T18>) obj3, obj4);
}
}

View File

@ -8,7 +8,7 @@ import kotlin.jvm.functions.Function13;
import kotlin.jvm.functions.Function14;
import kotlin.jvm.functions.Function15;
import kotlin.jvm.functions.Function16;
import kotlin.jvm.functions.Function19;
import kotlin.jvm.functions.Function20;
import rx.Observable;
/* compiled from: ObservableCombineLatestOverloads.kt */
public final class ObservableCombineLatestOverloadsKt {
@ -152,7 +152,7 @@ public final class ObservableCombineLatestOverloadsKt {
return d;
}
public static final <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R> Observable<R> combineLatest(Observable<T1> observable, Observable<T2> observable2, Observable<T3> observable3, Observable<T4> observable4, Observable<T5> observable5, Observable<T6> observable6, Observable<T7> observable7, Observable<T8> observable8, Observable<T9> observable9, Observable<T10> observable10, Observable<T11> observable11, Observable<T12> observable12, Observable<T13> observable13, Observable<T14> observable14, Observable<T15> observable15, Observable<T16> observable16, Observable<T17> observable17, Observable<T18> observable18, Observable<T19> observable19, Function19<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? super T9, ? super T10, ? super T11, ? super T12, ? super T13, ? super T14, ? super T15, ? super T16, ? super T17, ? super T18, ? super T19, ? extends R> function19) {
public static final <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R> Observable<R> combineLatest(Observable<T1> observable, Observable<T2> observable2, Observable<T3> observable3, Observable<T4> observable4, Observable<T5> observable5, Observable<T6> observable6, Observable<T7> observable7, Observable<T8> observable8, Observable<T9> observable9, Observable<T10> observable10, Observable<T11> observable11, Observable<T12> observable12, Observable<T13> observable13, Observable<T14> observable14, Observable<T15> observable15, Observable<T16> observable16, Observable<T17> observable17, Observable<T18> observable18, Observable<T19> observable19, Observable<T20> observable20, Function20<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? super T9, ? super T10, ? super T11, ? super T12, ? super T13, ? super T14, ? super T15, ? super T16, ? super T17, ? super T18, ? super T19, ? super T20, ? extends R> function20) {
m.checkNotNullParameter(observable, "o1");
m.checkNotNullParameter(observable2, "o2");
m.checkNotNullParameter(observable3, "o3");
@ -172,10 +172,11 @@ public final class ObservableCombineLatestOverloadsKt {
m.checkNotNullParameter(observable17, "o17");
m.checkNotNullParameter(observable18, "o18");
m.checkNotNullParameter(observable19, "o19");
m.checkNotNullParameter(function19, "combineFunction");
Observable<R> i = Observable.i(createHolderObservable(observable, observable2, observable3, observable4, observable5, observable6, observable7, observable8, observable9), createHolderObservable(observable10, observable11, observable12, observable13, observable14, observable15, observable16, observable17, observable18), observable19, new ObservableCombineLatestOverloadsKt$combineLatest$8(function19));
m.checkNotNullExpressionValue(i, "Observable\n .comb…o19\n )\n }");
return i;
m.checkNotNullParameter(observable20, "o20");
m.checkNotNullParameter(function20, "combineFunction");
Observable<R> h = Observable.h(createHolderObservable(observable, observable2, observable3, observable4, observable5, observable6, observable7, observable8, observable9), createHolderObservable(observable10, observable11, observable12, observable13, observable14, observable15, observable16, observable17, observable18), observable19, observable20, new ObservableCombineLatestOverloadsKt$combineLatest$8(function20));
m.checkNotNullExpressionValue(h, "Observable\n .comb…o20\n )\n }");
return h;
}
private static final <T1, T2, T3, T4, T5, T6, T7, T8, T9> Observable<Holder<T1, T2, T3, T4, T5, T6, T7, T8, T9>> createHolderObservable(Observable<T1> observable, Observable<T2> observable2, Observable<T3> observable3, Observable<T4> observable4, Observable<T5> observable5, Observable<T6> observable6, Observable<T7> observable7, Observable<T8> observable8, Observable<T9> observable9) {

View File

@ -162,7 +162,7 @@ public final class AuthInviteInfoView extends RelativeLayout {
textView.setText(b.l(getIntroText(modelInvite), new Object[0], null, 2));
TextView textView2 = this.binding.f1724c;
m.checkNotNullExpressionValue(textView2, "binding.authInviteInfoGuildName");
textView2.setText(guild.w());
textView2.setText(guild.x());
return;
}
return;

View File

@ -1,7 +1,8 @@
package com.discord.widgets.channels.list;
import com.discord.api.channel.Channel;
import com.discord.api.directory.DirectoryEntry;
import com.discord.api.directory.DirectoryEntryEvent;
import com.discord.api.directory.DirectoryEntryGuild;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.api.stageinstance.StageInstance;
import com.discord.models.guild.Guild;
@ -22,18 +23,18 @@ import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.jvm.functions.Function19;
import kotlin.jvm.functions.Function20;
/* compiled from: WidgetChannelListModel.kt */
public final class WidgetChannelListModel$Companion$getSelectedGuildChannelList$1 extends o implements Function19<GuildChannelsInfo, Map<Long, ? extends Channel>, Map<Long, ? extends StoreThreadsJoined.JoinedThread>, Map<Long, ? extends Map<Long, ? extends StoreThreadsActiveJoined.ActiveJoinedThread>>, Set<? extends Long>, Channel, Long, Map<Long, ? extends List<? extends ChannelListItemVoiceUser>>, Map<Long, ? extends Integer>, Set<? extends Long>, Set<? extends Long>, StoreNux.NuxState, Map<Long, ? extends StageChannel>, Map<Long, ? extends StageInstance>, List<? extends GuildScheduledEvent>, Boolean, Boolean, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntry>>>, Map<Long, ? extends StoreMessageAck.Ack>, WidgetChannelListModel> {
public final class WidgetChannelListModel$Companion$getSelectedGuildChannelList$1 extends o implements Function20<GuildChannelsInfo, Map<Long, ? extends Channel>, Map<Long, ? extends StoreThreadsJoined.JoinedThread>, Map<Long, ? extends Map<Long, ? extends StoreThreadsActiveJoined.ActiveJoinedThread>>, Set<? extends Long>, Channel, Long, Map<Long, ? extends List<? extends ChannelListItemVoiceUser>>, Map<Long, ? extends Integer>, Set<? extends Long>, Set<? extends Long>, StoreNux.NuxState, Map<Long, ? extends StageChannel>, Map<Long, ? extends StageInstance>, List<? extends GuildScheduledEvent>, Boolean, Boolean, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryGuild>>>, Map<Long, ? extends StoreMessageAck.Ack>, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryEvent>>>, WidgetChannelListModel> {
public final /* synthetic */ long $selectedGuildId;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$getSelectedGuildChannelList$1(long j) {
super(19);
super(20);
this.$selectedGuildId = j;
}
public final WidgetChannelListModel invoke(GuildChannelsInfo guildChannelsInfo, Map<Long, Channel> map, Map<Long, StoreThreadsJoined.JoinedThread> map2, Map<Long, ? extends Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread>> map3, Set<Long> set, Channel channel, long j, Map<Long, ? extends List<ChannelListItemVoiceUser>> map4, Map<Long, Integer> map5, Set<Long> set2, Set<Long> set3, StoreNux.NuxState nuxState, Map<Long, StageChannel> map6, Map<Long, StageInstance> map7, List<GuildScheduledEvent> list, boolean z2, boolean z3, Map<Long, ? extends RestCallState<? extends List<DirectoryEntry>>> map8, Map<Long, StoreMessageAck.Ack> map9) {
public final WidgetChannelListModel invoke(GuildChannelsInfo guildChannelsInfo, Map<Long, Channel> map, Map<Long, StoreThreadsJoined.JoinedThread> map2, Map<Long, ? extends Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread>> map3, Set<Long> set, Channel channel, long j, Map<Long, ? extends List<ChannelListItemVoiceUser>> map4, Map<Long, Integer> map5, Set<Long> set2, Set<Long> set3, StoreNux.NuxState nuxState, Map<Long, StageChannel> map6, Map<Long, StageInstance> map7, List<GuildScheduledEvent> list, boolean z2, boolean z3, Map<Long, ? extends RestCallState<? extends List<DirectoryEntryGuild>>> map8, Map<Long, StoreMessageAck.Ack> map9, Map<Long, ? extends RestCallState<? extends List<DirectoryEntryEvent>>> map10) {
boolean z4;
m.checkNotNullParameter(guildChannelsInfo, "guildChannelsInfo");
m.checkNotNullParameter(map, "guildChannels");
@ -50,7 +51,8 @@ public final class WidgetChannelListModel$Companion$getSelectedGuildChannelList$
m.checkNotNullParameter(list, "guildScheduledEvents");
m.checkNotNullParameter(map8, "directories");
m.checkNotNullParameter(map9, "messageAcks");
List plus = u.plus((Collection<? extends ChannelListBottomNavSpaceItem>) WidgetChannelListModel.Companion.access$guildListBuilder(WidgetChannelListModel.Companion, this.$selectedGuildId, guildChannelsInfo, map, map3, map2, set, channel, j, map4, map5, set2, set3, map6, map7, list, z2, z3, map8, map9), new ChannelListBottomNavSpaceItem(this.$selectedGuildId));
m.checkNotNullParameter(map10, "directoryEvents");
List plus = u.plus((Collection<? extends ChannelListBottomNavSpaceItem>) WidgetChannelListModel.Companion.access$guildListBuilder(WidgetChannelListModel.Companion, this.$selectedGuildId, guildChannelsInfo, map, map3, map2, set, channel, j, map4, map5, set2, set3, map6, map7, list, z2, z3, map8, map9, map10), new ChannelListBottomNavSpaceItem(this.$selectedGuildId));
if (nuxState.getPremiumGuildHintGuildId() != null) {
Long premiumGuildHintGuildId = nuxState.getPremiumGuildHintGuildId();
Guild guild = guildChannelsInfo.getGuild();
@ -64,9 +66,9 @@ public final class WidgetChannelListModel$Companion$getSelectedGuildChannelList$
}
/* 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, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function19
public /* bridge */ /* synthetic */ WidgetChannelListModel invoke(GuildChannelsInfo guildChannelsInfo, Map<Long, ? extends Channel> map, Map<Long, ? extends StoreThreadsJoined.JoinedThread> map2, Map<Long, ? extends Map<Long, ? extends StoreThreadsActiveJoined.ActiveJoinedThread>> map3, Set<? extends Long> set, Channel channel, Long l, Map<Long, ? extends List<? extends ChannelListItemVoiceUser>> map4, Map<Long, ? extends Integer> map5, Set<? extends Long> set2, Set<? extends Long> set3, StoreNux.NuxState nuxState, Map<Long, ? extends StageChannel> map6, Map<Long, ? extends StageInstance> map7, List<? extends GuildScheduledEvent> list, Boolean bool, Boolean bool2, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntry>>> map8, Map<Long, ? extends StoreMessageAck.Ack> map9) {
return invoke(guildChannelsInfo, (Map<Long, Channel>) map, (Map<Long, StoreThreadsJoined.JoinedThread>) map2, (Map<Long, ? extends Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread>>) map3, (Set<Long>) set, channel, l.longValue(), (Map<Long, ? extends List<ChannelListItemVoiceUser>>) map4, (Map<Long, Integer>) map5, (Set<Long>) set2, (Set<Long>) set3, nuxState, (Map<Long, StageChannel>) map6, (Map<Long, StageInstance>) map7, (List<GuildScheduledEvent>) list, bool.booleanValue(), bool2.booleanValue(), (Map<Long, ? extends RestCallState<? extends List<DirectoryEntry>>>) map8, (Map<Long, StoreMessageAck.Ack>) map9);
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function20
public /* bridge */ /* synthetic */ WidgetChannelListModel invoke(GuildChannelsInfo guildChannelsInfo, Map<Long, ? extends Channel> map, Map<Long, ? extends StoreThreadsJoined.JoinedThread> map2, Map<Long, ? extends Map<Long, ? extends StoreThreadsActiveJoined.ActiveJoinedThread>> map3, Set<? extends Long> set, Channel channel, Long l, Map<Long, ? extends List<? extends ChannelListItemVoiceUser>> map4, Map<Long, ? extends Integer> map5, Set<? extends Long> set2, Set<? extends Long> set3, StoreNux.NuxState nuxState, Map<Long, ? extends StageChannel> map6, Map<Long, ? extends StageInstance> map7, List<? extends GuildScheduledEvent> list, Boolean bool, Boolean bool2, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryGuild>>> map8, Map<Long, ? extends StoreMessageAck.Ack> map9, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryEvent>>> map10) {
return invoke(guildChannelsInfo, (Map<Long, Channel>) map, (Map<Long, StoreThreadsJoined.JoinedThread>) map2, (Map<Long, ? extends Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread>>) map3, (Set<Long>) set, channel, l.longValue(), (Map<Long, ? extends List<ChannelListItemVoiceUser>>) map4, (Map<Long, Integer>) map5, (Set<Long>) set2, (Set<Long>) set3, nuxState, (Map<Long, StageChannel>) map6, (Map<Long, StageInstance>) map7, (List<GuildScheduledEvent>) list, bool.booleanValue(), bool2.booleanValue(), (Map<Long, ? extends RestCallState<? extends List<DirectoryEntryGuild>>>) map8, (Map<Long, StoreMessageAck.Ack>) map9, (Map<Long, ? extends RestCallState<? extends List<DirectoryEntryEvent>>>) map10);
}
}

View File

@ -26,6 +26,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
public final /* synthetic */ Set $collapsedCategories$inlined;
public final /* synthetic */ Map $directories$inlined;
public final /* synthetic */ Map $directoryEvents$inlined;
public final /* synthetic */ HashSet $forceViewCategories$inlined;
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
public final /* synthetic */ List $guildScheduledEvents$inlined;
@ -125,7 +126,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1(boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z3, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z4, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8) {
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1(boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z3, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z4, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8, Map map9) {
super(3);
this.$isCategoryMuted = z2;
this.$guild$inlined = guildChannelsInfo;
@ -153,6 +154,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
this.$messageAcks$inlined = map7;
this.$directories$inlined = map8;
this.$directoryEvents$inlined = map9;
}
public static /* synthetic */ WidgetChannelListModel.Companion.TextLikeChannelData invoke$default(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, Channel channel, boolean z2, Boolean bool, int i, Object obj) {

View File

@ -29,6 +29,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
public final /* synthetic */ Set $collapsedCategories$inlined;
public final /* synthetic */ Map $directories$inlined;
public final /* synthetic */ Map $directoryEvents$inlined;
public final /* synthetic */ HashSet $forceViewCategories$inlined;
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
public final /* synthetic */ List $guildScheduledEvents$inlined;
@ -51,7 +52,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Map $voiceStates$inlined;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2(long j, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8) {
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2(long j, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8, Map map9) {
super(1);
this.$channelId = j;
this.$channel = channel;
@ -81,6 +82,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
this.$messageAcks$inlined = map7;
this.$directories$inlined = map8;
this.$directoryEvents$inlined = map9;
}
public final WidgetChannelListModel.Companion.VocalChannelData invoke(Channel channel) {

View File

@ -22,6 +22,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
public final /* synthetic */ Set $collapsedCategories$inlined;
public final /* synthetic */ Map $directories$inlined;
public final /* synthetic */ Map $directoryEvents$inlined;
public final /* synthetic */ HashSet $forceViewCategories$inlined;
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 $getTextLikeChannelData$1;
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
@ -46,7 +47,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Map $voiceStates$inlined;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3(Channel channel, Long l, WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z3, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z4, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8) {
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3(Channel channel, Long l, WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z3, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z4, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8, Map map9) {
super(0);
this.$channel = channel;
this.$permissions = l;
@ -77,6 +78,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
this.$messageAcks$inlined = map7;
this.$directories$inlined = map8;
this.$directoryEvents$inlined = map9;
}
@Override // kotlin.jvm.functions.Function0

View File

@ -23,6 +23,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
public final /* synthetic */ Set $collapsedCategories$inlined;
public final /* synthetic */ Map $directories$inlined;
public final /* synthetic */ Map $directoryEvents$inlined;
public final /* synthetic */ HashSet $forceViewCategories$inlined;
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 $getTextLikeChannelData$1;
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
@ -45,7 +46,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Map $voiceStates$inlined;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8) {
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8, Map map9) {
super(2);
this.$getTextLikeChannelData$1 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;
this.$guild$inlined = guildChannelsInfo;
@ -73,6 +74,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
this.$messageAcks$inlined = map7;
this.$directories$inlined = map8;
this.$directoryEvents$inlined = map9;
}
public final ChannelListItemThread invoke(Channel channel, StoreThreadsJoined.JoinedThread joinedThread) {

View File

@ -28,6 +28,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
public final /* synthetic */ Set $collapsedCategories$inlined;
public final /* synthetic */ Map $directories$inlined;
public final /* synthetic */ Map $directoryEvents$inlined;
public final /* synthetic */ HashSet $forceViewCategories$inlined;
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 $getVocalChannelData$2;
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
@ -51,7 +52,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Map $voiceStates$inlined;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8) {
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8, Map map9) {
super(0);
this.$getVocalChannelData$2 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2;
this.$channel = channel;
@ -81,6 +82,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
this.$messageAcks$inlined = map7;
this.$directories$inlined = map8;
this.$directoryEvents$inlined = map9;
}
/* JADX DEBUG: Multi-variable search result rejected for r4v1, resolved type: java.lang.Object */

View File

@ -23,6 +23,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
public final /* synthetic */ Set $collapsedCategories$inlined;
public final /* synthetic */ Map $directories$inlined;
public final /* synthetic */ Map $directoryEvents$inlined;
public final /* synthetic */ HashSet $forceViewCategories$inlined;
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 $getVocalChannelData$2;
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
@ -46,7 +47,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Map $voiceStates$inlined;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$6(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8) {
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$6(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8, Map map9) {
super(0);
this.$getVocalChannelData$2 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2;
this.$channel = channel;
@ -76,6 +77,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
this.$messageAcks$inlined = map7;
this.$directories$inlined = map8;
this.$directoryEvents$inlined = map9;
}
@Override // kotlin.jvm.functions.Function0

View File

@ -23,6 +23,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
public final /* synthetic */ Set $collapsedCategories$inlined;
public final /* synthetic */ Map $directories$inlined;
public final /* synthetic */ Map $directoryEvents$inlined;
public final /* synthetic */ HashSet $forceViewCategories$inlined;
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
public final /* synthetic */ List $guildScheduledEvents$inlined;
@ -45,7 +46,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Map $voiceStates$inlined;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$7(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8) {
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$7(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8, Map map9) {
super(1);
this.$toChannelListItemThread$4 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4;
this.$guild$inlined = guildChannelsInfo;
@ -73,6 +74,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
this.$messageAcks$inlined = map7;
this.$directories$inlined = map8;
this.$directoryEvents$inlined = map9;
}
public final Collection<ChannelListItemThread> invoke(Channel channel) {

View File

@ -23,6 +23,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
public final /* synthetic */ Set $collapsedCategories$inlined;
public final /* synthetic */ Map $directories$inlined;
public final /* synthetic */ Map $directoryEvents$inlined;
public final /* synthetic */ HashSet $forceViewCategories$inlined;
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
public final /* synthetic */ List $guildScheduledEvents$inlined;
@ -44,7 +45,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
public final /* synthetic */ Map $voiceStates$inlined;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8(long j, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8) {
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8(long j, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, boolean z3, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2, Map map7, Map map8, Map map9) {
super(0);
this.$channelId = j;
this.$guild$inlined = guildChannelsInfo;
@ -72,6 +73,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
this.$messageAcks$inlined = map7;
this.$directories$inlined = map8;
this.$directoryEvents$inlined = map9;
}
/* Return type fixed from 'java.util.Collection<com.discord.widgets.channels.list.items.ChannelListItemVoiceUser>' to match base method */

View File

@ -413,8 +413,8 @@ public final class WidgetChannelListModel {
return companion.getSelectedGuildChannelList(j);
}
public static final /* synthetic */ List access$guildListBuilder(Companion companion, long j, GuildChannelsInfo guildChannelsInfo, Map map, Map map2, Map map3, Set set, Channel channel, long j2, Map map4, Map map5, Set set2, Set set3, Map map6, Map map7, List list, boolean z2, boolean z3, Map map8, Map map9) {
return companion.guildListBuilder(j, guildChannelsInfo, map, map2, map3, set, channel, j2, map4, map5, set2, set3, map6, map7, list, z2, z3, map8, map9);
public static final /* synthetic */ List access$guildListBuilder(Companion companion, long j, GuildChannelsInfo guildChannelsInfo, Map map, Map map2, Map map3, Set set, Channel channel, long j2, Map map4, Map map5, Set set2, Set set3, Map map6, Map map7, List list, boolean z2, boolean z3, Map map8, Map map9, Map map10) {
return companion.guildListBuilder(j, guildChannelsInfo, map, map2, map3, set, channel, j2, map4, map5, set2, set3, map6, map7, list, z2, z3, map8, map9, map10);
}
/* JADX WARNING: Removed duplicated region for block: B:101:0x0195 A[EDGE_INSN: B:101:0x0195->B:81:0x0195 ?: BREAK , SYNTHETIC] */
@ -560,22 +560,22 @@ public final class WidgetChannelListModel {
private final Observable<WidgetChannelListModel> getSelectedGuildChannelList(long j) {
Observable<GuildChannelsInfo> observable = GuildChannelsInfo.Companion.get(j);
StoreStream.Companion companion = StoreStream.Companion;
return ObservableCombineLatestOverloadsKt.combineLatest(observable, StoreChannels.observeChannelsForGuild$default(companion.getChannels(), j, null, 2, null), companion.getThreadsJoined().observeJoinedThreads(), companion.getThreadsActiveJoined().observeActiveJoinedThreadsForGuild(j), companion.getThreadsActive().observeChannelsWithActiveThreadsByGuild(j), companion.getChannelsSelected().observeSelectedChannel(), companion.getVoiceChannelSelected().observeSelectedVoiceChannelId(), VoiceStates.get$default(VoiceStates.INSTANCE, j, null, 2, null), companion.getMentions().observeMentionCounts(), companion.getReadStates().getUnreadChannelIds(), companion.getStoreChannelCategories().observeCollapsedCategories(j), companion.getNux().getNuxState(), companion.getStageChannels().observeGuildStageChannels(j), companion.getStageInstances().observeStageInstancesForGuild(j), StoreGuildScheduledEvents.observeGuildScheduledEvents$default(companion.getGuildScheduledEvents(), j, false, 2, null), GuildScheduledEventUtilities.Companion.observeCanCreateAnyEvent$default(GuildScheduledEventUtilities.Companion, j, null, null, null, 14, null), GuildRoleSubscriptionsFeatureFlag.Companion.getINSTANCE().observeCanGuildSeeGuildRoleSubscriptions(j), companion.getDirectories().observeDirectories(), companion.getMessageAck().observeAll(), new WidgetChannelListModel$Companion$getSelectedGuildChannelList$1(j));
return ObservableCombineLatestOverloadsKt.combineLatest(observable, StoreChannels.observeChannelsForGuild$default(companion.getChannels(), j, null, 2, null), companion.getThreadsJoined().observeJoinedThreads(), companion.getThreadsActiveJoined().observeActiveJoinedThreadsForGuild(j), companion.getThreadsActive().observeChannelsWithActiveThreadsByGuild(j), companion.getChannelsSelected().observeSelectedChannel(), companion.getVoiceChannelSelected().observeSelectedVoiceChannelId(), VoiceStates.get$default(VoiceStates.INSTANCE, j, null, 2, null), companion.getMentions().observeMentionCounts(), companion.getReadStates().getUnreadChannelIds(), companion.getStoreChannelCategories().observeCollapsedCategories(j), companion.getNux().getNuxState(), companion.getStageChannels().observeGuildStageChannels(j), companion.getStageInstances().observeStageInstancesForGuild(j), StoreGuildScheduledEvents.observeGuildScheduledEvents$default(companion.getGuildScheduledEvents(), j, false, 2, null), GuildScheduledEventUtilities.Companion.observeCanCreateAnyEvent$default(GuildScheduledEventUtilities.Companion, j, null, null, null, 14, null), GuildRoleSubscriptionsFeatureFlag.Companion.getINSTANCE().observeCanGuildSeeGuildRoleSubscriptions(j), companion.getDirectories().observeDirectories(), companion.getMessageAck().observeAll(), companion.getDirectories().observeDirectoryGuildScheduledEvents(), new WidgetChannelListModel$Companion$getSelectedGuildChannelList$1(j));
}
/* JADX ERROR: IndexOutOfBoundsException in pass: SSATransform
java.lang.IndexOutOfBoundsException: bitIndex < 0: -66
java.lang.IndexOutOfBoundsException: bitIndex < 0: -61
at java.base/java.util.BitSet.get(BitSet.java:626)
at jadx.core.dex.visitors.ssa.LiveVarAnalysis.fillBasicBlockInfo(LiveVarAnalysis.java:65)
at jadx.core.dex.visitors.ssa.LiveVarAnalysis.runAnalysis(LiveVarAnalysis.java:36)
at jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:55)
at jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:41)
*/
private final java.util.List<com.discord.widgets.channels.list.items.ChannelListItem> guildListBuilder(long r173, com.discord.utilities.channel.GuildChannelsInfo r175, java.util.Map<java.lang.Long, com.discord.api.channel.Channel> r176, java.util.Map<java.lang.Long, ? extends java.util.Map<java.lang.Long, com.discord.stores.StoreThreadsActiveJoined.ActiveJoinedThread>> r177, java.util.Map<java.lang.Long, com.discord.stores.StoreThreadsJoined.JoinedThread> r178, java.util.Set<java.lang.Long> r179, com.discord.api.channel.Channel r180, long r181, java.util.Map<java.lang.Long, ? extends java.util.Collection<com.discord.widgets.channels.list.items.ChannelListItemVoiceUser>> r183, java.util.Map<java.lang.Long, java.lang.Integer> r184, java.util.Set<java.lang.Long> r185, java.util.Set<java.lang.Long> r186, java.util.Map<java.lang.Long, com.discord.widgets.stage.model.StageChannel> r187, java.util.Map<java.lang.Long, com.discord.api.stageinstance.StageInstance> r188, java.util.List<com.discord.api.guildscheduledevent.GuildScheduledEvent> r189, boolean r190, boolean r191, java.util.Map<java.lang.Long, ? extends com.discord.stores.utilities.RestCallState<? extends java.util.List<com.discord.api.directory.DirectoryEntry>>> r192, java.util.Map<java.lang.Long, com.discord.stores.StoreMessageAck.Ack> r193) {
private final java.util.List<com.discord.widgets.channels.list.items.ChannelListItem> guildListBuilder(long r178, com.discord.utilities.channel.GuildChannelsInfo r180, java.util.Map<java.lang.Long, com.discord.api.channel.Channel> r181, java.util.Map<java.lang.Long, ? extends java.util.Map<java.lang.Long, com.discord.stores.StoreThreadsActiveJoined.ActiveJoinedThread>> r182, java.util.Map<java.lang.Long, com.discord.stores.StoreThreadsJoined.JoinedThread> r183, java.util.Set<java.lang.Long> r184, com.discord.api.channel.Channel r185, long r186, java.util.Map<java.lang.Long, ? extends java.util.Collection<com.discord.widgets.channels.list.items.ChannelListItemVoiceUser>> r188, java.util.Map<java.lang.Long, java.lang.Integer> r189, java.util.Set<java.lang.Long> r190, java.util.Set<java.lang.Long> r191, java.util.Map<java.lang.Long, com.discord.widgets.stage.model.StageChannel> r192, java.util.Map<java.lang.Long, com.discord.api.stageinstance.StageInstance> r193, java.util.List<com.discord.api.guildscheduledevent.GuildScheduledEvent> r194, boolean r195, boolean r196, java.util.Map<java.lang.Long, ? extends com.discord.stores.utilities.RestCallState<? extends java.util.List<com.discord.api.directory.DirectoryEntryGuild>>> r197, java.util.Map<java.lang.Long, com.discord.stores.StoreMessageAck.Ack> r198, java.util.Map<java.lang.Long, ? extends com.discord.stores.utilities.RestCallState<? extends java.util.List<com.discord.api.directory.DirectoryEntryEvent>>> r199) {
/*
// Method dump skipped, instructions count: 1550
// Method dump skipped, instructions count: 1688
*/
throw new UnsupportedOperationException("Method not decompiled: com.discord.widgets.channels.list.WidgetChannelListModel.Companion.guildListBuilder(long, com.discord.utilities.channel.GuildChannelsInfo, java.util.Map, java.util.Map, java.util.Map, java.util.Set, com.discord.api.channel.Channel, long, java.util.Map, java.util.Map, java.util.Set, java.util.Set, java.util.Map, java.util.Map, java.util.List, boolean, boolean, java.util.Map, java.util.Map):java.util.List");
throw new UnsupportedOperationException("Method not decompiled: com.discord.widgets.channels.list.WidgetChannelListModel.Companion.guildListBuilder(long, com.discord.utilities.channel.GuildChannelsInfo, java.util.Map, java.util.Map, java.util.Map, java.util.Set, com.discord.api.channel.Channel, long, java.util.Map, java.util.Map, java.util.Set, java.util.Set, java.util.Map, java.util.Map, java.util.List, boolean, boolean, java.util.Map, java.util.Map, java.util.Map):java.util.List");
}
public final Observable<WidgetChannelListModel> get() {

View File

@ -1,13 +1,15 @@
package com.discord.widgets.channels.list;
import androidx.fragment.app.FragmentManager;
import com.discord.models.guild.Guild;
import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventListBottomSheet;
import com.discord.widgets.hubs.events.WidgetHubEventsPage;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetChannelsList.kt */
public final class WidgetChannelsList$onViewBound$8 extends o implements Function1<Long, Unit> {
public final class WidgetChannelsList$onViewBound$8 extends o implements Function1<Guild, Unit> {
public final /* synthetic */ WidgetChannelsList this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
@ -19,15 +21,23 @@ public final class WidgetChannelsList$onViewBound$8 extends o implements Functio
/* 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 */ Unit invoke(Long l) {
invoke(l.longValue());
public /* bridge */ /* synthetic */ Unit invoke(Guild guild) {
invoke(guild);
return Unit.a;
}
public final void invoke(long j) {
WidgetGuildScheduledEventListBottomSheet.Companion companion = WidgetGuildScheduledEventListBottomSheet.Companion;
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
WidgetGuildScheduledEventListBottomSheet.Companion.show$default(companion, parentFragmentManager, j, null, 4, null);
public final void invoke(Guild guild) {
m.checkNotNullParameter(guild, "guild");
if (guild.isHub()) {
WidgetHubEventsPage.Companion companion = WidgetHubEventsPage.Companion;
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
companion.show(parentFragmentManager, guild.getId());
return;
}
WidgetGuildScheduledEventListBottomSheet.Companion companion2 = WidgetGuildScheduledEventListBottomSheet.Companion;
FragmentManager parentFragmentManager2 = this.this$0.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager2, "parentFragmentManager");
WidgetGuildScheduledEventListBottomSheet.Companion.show$default(companion2, parentFragmentManager2, guild.getId(), null, 4, null);
}
}

View File

@ -15,6 +15,6 @@ public final class WidgetChannelsListAdapter$ItemGuildScheduledEvents$onConfigur
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
WidgetChannelsListAdapter.ItemGuildScheduledEvents.access$getAdapter$p(this.this$0).getOnViewGuildScheduledEvents().invoke(Long.valueOf(this.$item.getGuildId()));
WidgetChannelsListAdapter.ItemGuildScheduledEvents.access$getAdapter$p(this.this$0).getOnViewGuildScheduledEvents().invoke(this.$item.getGuild());
}
}

View File

@ -1,10 +1,12 @@
package com.discord.widgets.channels.list;
import com.discord.models.guild.Guild;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetChannelsListAdapter.kt */
public final class WidgetChannelsListAdapter$onViewGuildScheduledEvents$1 extends o implements Function1<Long, Unit> {
public final class WidgetChannelsListAdapter$onViewGuildScheduledEvents$1 extends o implements Function1<Guild, Unit> {
public static final WidgetChannelsListAdapter$onViewGuildScheduledEvents$1 INSTANCE = new WidgetChannelsListAdapter$onViewGuildScheduledEvents$1();
public WidgetChannelsListAdapter$onViewGuildScheduledEvents$1() {
@ -14,11 +16,12 @@ public final class WidgetChannelsListAdapter$onViewGuildScheduledEvents$1 extend
/* 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 */ Unit invoke(Long l) {
invoke(l.longValue());
public /* bridge */ /* synthetic */ Unit invoke(Guild guild) {
invoke(guild);
return Unit.a;
}
public final void invoke(long j) {
public final void invoke(Guild guild) {
m.checkNotNullParameter(guild, "it");
}
}

View File

@ -45,6 +45,7 @@ import com.discord.databinding.WidgetChannelsListItemHeaderBinding;
import com.discord.databinding.WidgetChannelsListItemMfaBinding;
import com.discord.databinding.WidgetChannelsListItemThreadBinding;
import com.discord.databinding.WidgetChannelsListItemVoiceUserBinding;
import com.discord.models.guild.Guild;
import com.discord.models.member.GuildMember;
import com.discord.models.presence.Presence;
import com.discord.models.user.User;
@ -109,7 +110,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
private Function1<? super View, Unit> onSelectInvite = WidgetChannelsListAdapter$onSelectInvite$1.INSTANCE;
private Function2<? super User, ? super Channel, Unit> onSelectUserOptions = WidgetChannelsListAdapter$onSelectUserOptions$1.INSTANCE;
private Function0<Unit> onViewGuildRoleSubscriptions = WidgetChannelsListAdapter$onViewGuildRoleSubscriptions$1.INSTANCE;
private Function1<? super Long, Unit> onViewGuildScheduledEvents = WidgetChannelsListAdapter$onViewGuildScheduledEvents$1.INSTANCE;
private Function1<? super Guild, Unit> onViewGuildScheduledEvents = WidgetChannelsListAdapter$onViewGuildScheduledEvents$1.INSTANCE;
private long selectedGuildId;
/* compiled from: WidgetChannelsListAdapter.kt */
@ -1794,8 +1795,8 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
return this.onViewGuildRoleSubscriptions;
}
/* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: kotlin.jvm.functions.Function1<? super java.lang.Long, kotlin.Unit>, kotlin.jvm.functions.Function1<java.lang.Long, kotlin.Unit> */
public final Function1<Long, Unit> getOnViewGuildScheduledEvents() {
/* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: kotlin.jvm.functions.Function1<? super com.discord.models.guild.Guild, kotlin.Unit>, kotlin.jvm.functions.Function1<com.discord.models.guild.Guild, kotlin.Unit> */
public final Function1<Guild, Unit> getOnViewGuildScheduledEvents() {
return this.onViewGuildScheduledEvents;
}
@ -1913,7 +1914,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
this.onViewGuildRoleSubscriptions = function0;
}
public final void setOnViewGuildScheduledEvents(Function1<? super Long, Unit> function1) {
public final void setOnViewGuildScheduledEvents(Function1<? super Guild, Unit> function1) {
m.checkNotNullParameter(function1, "<set-?>");
this.onViewGuildScheduledEvents = function1;
}

View File

@ -1,46 +1,48 @@
package com.discord.widgets.channels.list.items;
import a0.a.a.b;
import c.d.b.a.a;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.models.guild.Guild;
import d0.z.d.m;
import java.util.List;
/* compiled from: ChannelListItemGuildScheduledEvents.kt */
public final class ChannelListItemGuildScheduledEvents implements ChannelListItem {
private final List<GuildScheduledEvent> data;
private final long guildId;
private final Guild guild;
private final String key = String.valueOf(getType());
private final int type = 19;
public ChannelListItemGuildScheduledEvents(List<GuildScheduledEvent> list, long j) {
public ChannelListItemGuildScheduledEvents(List<GuildScheduledEvent> list, Guild guild) {
m.checkNotNullParameter(list, "data");
m.checkNotNullParameter(guild, "guild");
this.data = list;
this.guildId = j;
this.guild = guild;
}
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.channels.list.items.ChannelListItemGuildScheduledEvents */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ ChannelListItemGuildScheduledEvents copy$default(ChannelListItemGuildScheduledEvents channelListItemGuildScheduledEvents, List list, long j, int i, Object obj) {
public static /* synthetic */ ChannelListItemGuildScheduledEvents copy$default(ChannelListItemGuildScheduledEvents channelListItemGuildScheduledEvents, List list, Guild guild, int i, Object obj) {
if ((i & 1) != 0) {
list = channelListItemGuildScheduledEvents.data;
}
if ((i & 2) != 0) {
j = channelListItemGuildScheduledEvents.guildId;
guild = channelListItemGuildScheduledEvents.guild;
}
return channelListItemGuildScheduledEvents.copy(list, j);
return channelListItemGuildScheduledEvents.copy(list, guild);
}
public final List<GuildScheduledEvent> component1() {
return this.data;
}
public final long component2() {
return this.guildId;
public final Guild component2() {
return this.guild;
}
public final ChannelListItemGuildScheduledEvents copy(List<GuildScheduledEvent> list, long j) {
public final ChannelListItemGuildScheduledEvents copy(List<GuildScheduledEvent> list, Guild guild) {
m.checkNotNullParameter(list, "data");
return new ChannelListItemGuildScheduledEvents(list, j);
m.checkNotNullParameter(guild, "guild");
return new ChannelListItemGuildScheduledEvents(list, guild);
}
public boolean equals(Object obj) {
@ -51,15 +53,15 @@ public final class ChannelListItemGuildScheduledEvents implements ChannelListIte
return false;
}
ChannelListItemGuildScheduledEvents channelListItemGuildScheduledEvents = (ChannelListItemGuildScheduledEvents) obj;
return m.areEqual(this.data, channelListItemGuildScheduledEvents.data) && this.guildId == channelListItemGuildScheduledEvents.guildId;
return m.areEqual(this.data, channelListItemGuildScheduledEvents.data) && m.areEqual(this.guild, channelListItemGuildScheduledEvents.guild);
}
public final List<GuildScheduledEvent> getData() {
return this.data;
}
public final long getGuildId() {
return this.guildId;
public final Guild getGuild() {
return this.guild;
}
@Override // com.discord.widgets.channels.list.items.ChannelListItem, com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
@ -74,13 +76,21 @@ public final class ChannelListItemGuildScheduledEvents implements ChannelListIte
public int hashCode() {
List<GuildScheduledEvent> list = this.data;
return b.a(this.guildId) + ((list != null ? list.hashCode() : 0) * 31);
int i = 0;
int hashCode = (list != null ? list.hashCode() : 0) * 31;
Guild guild = this.guild;
if (guild != null) {
i = guild.hashCode();
}
return hashCode + i;
}
public String toString() {
StringBuilder R = a.R("ChannelListItemGuildScheduledEvents(data=");
R.append(this.data);
R.append(", guildId=");
return a.B(R, this.guildId, ")");
R.append(", guild=");
R.append(this.guild);
R.append(")");
return R.toString();
}
}

View File

@ -94,12 +94,13 @@ public final class WidgetChatList extends AppFragment {
FragmentManager parentFragmentManager = getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
WidgetChatListAdapter widgetChatListAdapter = new WidgetChatListAdapter(recyclerView, this, parentFragmentManager, new WidgetChatListAdapterEventsHandler(this, getFlexInputViewModel(), null, null, null, null, null, null, null, null, null, null, 4092, null), getFlexInputViewModel(), ClockFactory.get());
WidgetChatListAdapter widgetChatListAdapter2 = (WidgetChatListAdapter) MGRecyclerAdapter.Companion.configure(widgetChatListAdapter);
MGRecyclerAdapter.Companion.configure(widgetChatListAdapter);
addThreadSpineItemDecoration(widgetChatListAdapter);
LinearLayoutManager layoutManager = widgetChatListAdapter.getLayoutManager();
if (layoutManager != null) {
layoutManager.setReverseLayout(true);
}
addThreadSpineItemDecoration(widgetChatListAdapter);
widgetChatListAdapter.setStateRestorationPolicy(RecyclerView.Adapter.StateRestorationPolicy.PREVENT_WHEN_EMPTY);
this.adapter = widgetChatListAdapter;
}

View File

@ -12,7 +12,7 @@ import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
/* compiled from: WidgetChatListAdapter.kt */
@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$ScrollToWithHighlight$animateHighlight$1", f = "WidgetChatListAdapter.kt", l = {421}, m = "invokeSuspend")
@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$ScrollToWithHighlight$animateHighlight$1", f = "WidgetChatListAdapter.kt", l = {427}, m = "invokeSuspend")
public final class WidgetChatListAdapter$ScrollToWithHighlight$animateHighlight$1 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
public final /* synthetic */ TransitionDrawable $transition;
public int label;

View File

@ -12,7 +12,7 @@ import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
/* compiled from: WidgetChatListAdapter.kt */
@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1", f = "WidgetChatListAdapter.kt", l = {431}, m = "invokeSuspend")
@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1", f = "WidgetChatListAdapter.kt", l = {437}, m = "invokeSuspend")
public final class WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
public int label;
public final /* synthetic */ WidgetChatListAdapter.ScrollToWithHighlight this$0;

View File

@ -14,12 +14,13 @@ import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.Job;
/* compiled from: WidgetChatListAdapter.kt */
public final class WidgetChatListAdapter$setHandlers$1 extends o implements Function2<List<? extends ChatListEntry>, List<? extends ChatListEntry>, Unit> {
public final /* synthetic */ WidgetChatListAdapter this$0;
/* compiled from: WidgetChatListAdapter.kt */
@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$setHandlers$1$1", f = "WidgetChatListAdapter.kt", l = {113}, m = "invokeSuspend")
@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$setHandlers$1$1", f = "WidgetChatListAdapter.kt", l = {117}, m = "invokeSuspend")
/* renamed from: com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$setHandlers$1$1 reason: invalid class name */
public static final class AnonymousClass1 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
public int label;
@ -80,11 +81,19 @@ public final class WidgetChatListAdapter$setHandlers$1 extends o implements Func
public final void invoke(List<? extends ChatListEntry> list, List<? extends ChatListEntry> list2) {
m.checkNotNullParameter(list, "<anonymous parameter 0>");
m.checkNotNullParameter(list2, "<anonymous parameter 1>");
CoroutineScope coroutineScope = ViewCoroutineScopeKt.getCoroutineScope(this.this$0.getRecycler());
if (coroutineScope != null) {
f.F0(coroutineScope, null, null, new AnonymousClass1(this, null), 3, null);
Job access$getLastUpdateJob$p = WidgetChatListAdapter.access$getLastUpdateJob$p(this.this$0);
Job job = null;
if (access$getLastUpdateJob$p != null) {
f.s(access$getLastUpdateJob$p, null, 1, null);
}
WidgetChatListAdapter widgetChatListAdapter = this.this$0;
CoroutineScope coroutineScope = ViewCoroutineScopeKt.getCoroutineScope(widgetChatListAdapter.getRecycler());
if (coroutineScope != null) {
job = f.F0(coroutineScope, null, null, new AnonymousClass1(this, null), 3, null);
}
WidgetChatListAdapter.access$setLastUpdateJob$p(widgetChatListAdapter, job);
this.this$0.getRecycler().setOnTouchListener(WidgetChatListAdapter.access$getHandlerOfTouches$p(this.this$0));
this.this$0.getRecycler().removeOnScrollListener(WidgetChatListAdapter.access$getHandlerOfScrolls$p(this.this$0));
this.this$0.getRecycler().addOnScrollListener(WidgetChatListAdapter.access$getHandlerOfScrolls$p(this.this$0));
}
}

View File

@ -56,6 +56,7 @@ import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.Job;
import rx.functions.Action0;
/* compiled from: WidgetChatListAdapter.kt */
public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple<ChatListEntry> {
@ -73,6 +74,7 @@ public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple<ChatLis
private final HandlerOfTouches handlerOfTouches;
private final HandlerOfUpdates handlerOfUpdates;
private boolean isTouchedSinceLastJump;
private Job lastUpdateJob;
private boolean mentionMeMessageLevelHighlighting;
private ScrollToWithHighlight scrollToWithHighlight;
@ -411,8 +413,11 @@ public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple<ChatLis
@Override // java.lang.Runnable
public void run() {
if (this.channelId != WidgetChatListAdapter.this.getData().getChannelId()) {
boolean z2 = this.channelId != 0;
this.channelId = WidgetChatListAdapter.this.getData().getChannelId();
WidgetChatListAdapter.this.scrollToMessageId(0, WidgetChatListAdapter$HandlerOfUpdates$run$1.INSTANCE);
if (z2) {
WidgetChatListAdapter.this.scrollToMessageId(0, WidgetChatListAdapter$HandlerOfUpdates$run$1.INSTANCE);
}
WidgetChatListAdapter.access$setTouchedSinceLastJump$p(WidgetChatListAdapter.this, false);
}
if (this.oldestMessageId != WidgetChatListAdapter.this.getData().getOldestMessageId()) {
@ -624,6 +629,10 @@ public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple<ChatLis
return widgetChatListAdapter.handlerOfUpdates;
}
public static final /* synthetic */ Job access$getLastUpdateJob$p(WidgetChatListAdapter widgetChatListAdapter) {
return widgetChatListAdapter.lastUpdateJob;
}
public static final /* synthetic */ ScrollToWithHighlight access$getScrollToWithHighlight$p(WidgetChatListAdapter widgetChatListAdapter) {
return widgetChatListAdapter.scrollToWithHighlight;
}
@ -636,6 +645,10 @@ public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple<ChatLis
widgetChatListAdapter.publishInteractionState();
}
public static final /* synthetic */ void access$setLastUpdateJob$p(WidgetChatListAdapter widgetChatListAdapter, Job job) {
widgetChatListAdapter.lastUpdateJob = job;
}
public static final /* synthetic */ void access$setScrollToWithHighlight$p(WidgetChatListAdapter widgetChatListAdapter, ScrollToWithHighlight scrollToWithHighlight) {
widgetChatListAdapter.scrollToWithHighlight = scrollToWithHighlight;
}
@ -655,6 +668,10 @@ public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple<ChatLis
public final void disposeHandlers() {
setOnUpdated(WidgetChatListAdapter$disposeHandlers$1.INSTANCE);
Job job = this.lastUpdateJob;
if (job != null) {
f.s(job, null, 1, null);
}
getRecycler().setOnTouchListener(null);
getRecycler().removeOnScrollListener(this.handlerOfScrolls);
this.eventHandler.onInteractionStateUpdated(new StoreChat.InteractionState(this.data.getChannelId(), 0, this.isTouchedSinceLastJump, (LinearLayoutManager) null));

View File

@ -51,7 +51,7 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite$Model$Comp
Guild guild = null;
if (channel2 != null) {
com.discord.api.guild.Guild guild2 = this.$item.getInvite().getGuild();
channel = Channel.a(channel2, null, 0, guild2 != null ? guild2.q() : 0, null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, false, 0, null, 0, null, null, null, null, null, null, null, null, 536870907);
channel = Channel.a(channel2, null, 0, guild2 != null ? guild2.r() : 0, null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, false, 0, null, 0, null, null, null, null, null, null, null, null, 536870907);
} else {
channel = null;
}

View File

@ -39,7 +39,7 @@ public final class WidgetChatListAdapterItemInvite$ModelProvider$observeModel$1
long id2 = this.$userStore.getMe().getId();
User user = this.$userStore.getUsers().get(Long.valueOf(this.$item.getUserId()));
Guild guild = this.$invite.getGuild();
boolean z2 = (guild != null ? this.$guildStore.getGuilds().get(Long.valueOf(guild.q())) : null) != null;
boolean z2 = (guild != null ? this.$guildStore.getGuilds().get(Long.valueOf(guild.r())) : null) != null;
Channel channel = this.$invite.getChannel();
Channel channel2 = channel != null ? this.$channelStore.getChannel(channel.h()) : null;
return (this.$invite.getExpirationTime() >= ClockFactory.get().currentTimeMillis() || this.$invite.isRevoked()) ? new WidgetChatListAdapterItemInvite.Model.Invalid(user, id2, channel2) : new WidgetChatListAdapterItemInvite.Model.Resolved(this.$invite, id2, user, z2, channel2, !this.$accessibilityStore.isReducedMotionEnabled());

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