98.4 - Alpha (98204)

This commit is contained in:
Juby210 2021-10-16 08:21:03 +02:00
parent 5a3ef03f16
commit 0a6dbd16f5
215 changed files with 16088 additions and 10041 deletions

View File

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

View File

@ -32,7 +32,7 @@ public final class o<T, R> implements b<Map<Long, ? extends StoreVoiceParticipan
for (T t : values) {
T t2 = t;
if (t2.isConnected()) {
if (ChannelUtils.x(this.i)) {
if (ChannelUtils.y(this.i)) {
VoiceState voiceState = t2.getVoiceState();
}
z2 = true;

View File

@ -122,7 +122,7 @@ public final class z extends l implements AppComponent {
ArrayList arrayList = new ArrayList();
for (Object obj : data) {
Channel channel = ((WidgetGlobalSearchModel.ItemDataPayload) obj).getChannel();
if (channel != null && ChannelUtils.C(channel)) {
if (channel != null && ChannelUtils.D(channel)) {
arrayList.add(obj);
}
}

View File

@ -0,0 +1,48 @@
package com.discord.analytics.generated.events;
import c.d.b.a.a;
import c0.z.d.m;
import com.discord.analytics.generated.traits.TrackBase;
import com.discord.analytics.generated.traits.TrackBaseReceiver;
import com.discord.api.science.AnalyticsSchema;
/* compiled from: TrackActivityReportDontShow.kt */
public final class TrackActivityReportDontShow implements AnalyticsSchema, TrackBaseReceiver {
private final transient String analyticsSchemaTypeName = "activity_report_dont_show";
private final Long applicationId = null;
private final CharSequence rating = null;
private TrackBase trackBase;
@Override // com.discord.api.science.AnalyticsSchema
public String b() {
return this.analyticsSchemaTypeName;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof TrackActivityReportDontShow)) {
return false;
}
TrackActivityReportDontShow trackActivityReportDontShow = (TrackActivityReportDontShow) obj;
return m.areEqual(this.applicationId, trackActivityReportDontShow.applicationId) && m.areEqual(this.rating, trackActivityReportDontShow.rating);
}
public int hashCode() {
Long l = this.applicationId;
int i = 0;
int hashCode = (l != null ? l.hashCode() : 0) * 31;
CharSequence charSequence = this.rating;
if (charSequence != null) {
i = charSequence.hashCode();
}
return hashCode + i;
}
public String toString() {
StringBuilder O = a.O("TrackActivityReportDontShow(applicationId=");
O.append(this.applicationId);
O.append(", rating=");
return a.C(O, this.rating, ")");
}
}

View File

@ -0,0 +1,6 @@
package com.discord.analytics.generated.events;
import com.discord.api.science.AnalyticsSchema;
/* compiled from: TrackActivityReportDontShow.kt */
public interface TrackActivityReportDontShowReceiver extends AnalyticsSchema {
}

View File

@ -9,6 +9,7 @@ import com.discord.api.science.AnalyticsSchema;
public final class TrackChannelNoticeCtaClicked implements AnalyticsSchema, TrackBaseReceiver {
private final transient String analyticsSchemaTypeName = "channel_notice_cta_clicked";
private final Long guildId = null;
private final CharSequence noticeType = null;
private final CharSequence source = null;
private TrackBase trackBase;
@ -25,7 +26,7 @@ public final class TrackChannelNoticeCtaClicked implements AnalyticsSchema, Trac
return false;
}
TrackChannelNoticeCtaClicked trackChannelNoticeCtaClicked = (TrackChannelNoticeCtaClicked) obj;
return m.areEqual(this.source, trackChannelNoticeCtaClicked.source) && m.areEqual(this.guildId, trackChannelNoticeCtaClicked.guildId);
return m.areEqual(this.source, trackChannelNoticeCtaClicked.source) && m.areEqual(this.guildId, trackChannelNoticeCtaClicked.guildId) && m.areEqual(this.noticeType, trackChannelNoticeCtaClicked.noticeType);
}
public int hashCode() {
@ -33,16 +34,20 @@ public final class TrackChannelNoticeCtaClicked implements AnalyticsSchema, Trac
int i = 0;
int hashCode = (charSequence != null ? charSequence.hashCode() : 0) * 31;
Long l = this.guildId;
if (l != null) {
i = l.hashCode();
int hashCode2 = (hashCode + (l != null ? l.hashCode() : 0)) * 31;
CharSequence charSequence2 = this.noticeType;
if (charSequence2 != null) {
i = charSequence2.hashCode();
}
return hashCode + i;
return hashCode2 + i;
}
public String toString() {
StringBuilder O = a.O("TrackChannelNoticeCtaClicked(source=");
O.append(this.source);
O.append(", guildId=");
return a.E(O, this.guildId, ")");
O.append(this.guildId);
O.append(", noticeType=");
return a.C(O, this.noticeType, ")");
}
}

View File

@ -20,6 +20,7 @@ public final class TrackGuildJoined implements AnalyticsSchema, TrackBaseReceive
private final Long locationChannelType = null;
private final Long locationGuildId = null;
private final Long locationMessageId = null;
private final Long postableChannels = null;
private final CharSequence source = null;
private TrackBase trackBase;
private final Long userGuilds = null;
@ -37,7 +38,7 @@ public final class TrackGuildJoined implements AnalyticsSchema, TrackBaseReceive
return false;
}
TrackGuildJoined trackGuildJoined = (TrackGuildJoined) obj;
return m.areEqual(this.joinMethod, trackGuildJoined.joinMethod) && m.areEqual(this.applicationId, trackGuildJoined.applicationId) && m.areEqual(this.botId, trackGuildJoined.botId) && m.areEqual(this.guildId, trackGuildJoined.guildId) && m.areEqual(this.guildName, trackGuildJoined.guildName) && m.areEqual(this.guildOwnerId, trackGuildJoined.guildOwnerId) && m.areEqual(this.userGuilds, trackGuildJoined.userGuilds) && m.areEqual(this.joinType, trackGuildJoined.joinType) && m.areEqual(this.source, trackGuildJoined.source) && m.areEqual(this.locationGuildId, trackGuildJoined.locationGuildId) && m.areEqual(this.locationChannelId, trackGuildJoined.locationChannelId) && m.areEqual(this.locationChannelType, trackGuildJoined.locationChannelType) && m.areEqual(this.locationMessageId, trackGuildJoined.locationMessageId) && m.areEqual(this.inviteGuildScheduledEventId, trackGuildJoined.inviteGuildScheduledEventId);
return m.areEqual(this.joinMethod, trackGuildJoined.joinMethod) && m.areEqual(this.applicationId, trackGuildJoined.applicationId) && m.areEqual(this.botId, trackGuildJoined.botId) && m.areEqual(this.guildId, trackGuildJoined.guildId) && m.areEqual(this.guildName, trackGuildJoined.guildName) && m.areEqual(this.guildOwnerId, trackGuildJoined.guildOwnerId) && m.areEqual(this.userGuilds, trackGuildJoined.userGuilds) && m.areEqual(this.joinType, trackGuildJoined.joinType) && m.areEqual(this.source, trackGuildJoined.source) && m.areEqual(this.locationGuildId, trackGuildJoined.locationGuildId) && m.areEqual(this.locationChannelId, trackGuildJoined.locationChannelId) && m.areEqual(this.locationChannelType, trackGuildJoined.locationChannelType) && m.areEqual(this.locationMessageId, trackGuildJoined.locationMessageId) && m.areEqual(this.inviteGuildScheduledEventId, trackGuildJoined.inviteGuildScheduledEventId) && m.areEqual(this.postableChannels, trackGuildJoined.postableChannels);
}
public int hashCode() {
@ -69,10 +70,12 @@ public final class TrackGuildJoined implements AnalyticsSchema, TrackBaseReceive
Long l9 = this.locationMessageId;
int hashCode13 = (hashCode12 + (l9 != null ? l9.hashCode() : 0)) * 31;
Long l10 = this.inviteGuildScheduledEventId;
if (l10 != null) {
i = l10.hashCode();
int hashCode14 = (hashCode13 + (l10 != null ? l10.hashCode() : 0)) * 31;
Long l11 = this.postableChannels;
if (l11 != null) {
i = l11.hashCode();
}
return hashCode13 + i;
return hashCode14 + i;
}
public String toString() {
@ -103,6 +106,8 @@ public final class TrackGuildJoined implements AnalyticsSchema, TrackBaseReceive
O.append(", locationMessageId=");
O.append(this.locationMessageId);
O.append(", inviteGuildScheduledEventId=");
return a.E(O, this.inviteGuildScheduledEventId, ")");
O.append(this.inviteGuildScheduledEventId);
O.append(", postableChannels=");
return a.E(O, this.postableChannels, ")");
}
}

View File

@ -17,6 +17,7 @@ public final class TrackGuildViewed implements AnalyticsSchema, TrackBaseReceive
private final Long guildAffinityIndex = null;
private final Float guildAffinityScore = null;
private final Boolean isPending = null;
private final Long postableChannels = null;
private final Boolean previewEnabled = null;
private TrackBase trackBase;
private TrackChannel trackChannel;
@ -36,7 +37,7 @@ public final class TrackGuildViewed implements AnalyticsSchema, TrackBaseReceive
return false;
}
TrackGuildViewed trackGuildViewed = (TrackGuildViewed) obj;
return m.areEqual(this.guildAffinityScore, trackGuildViewed.guildAffinityScore) && m.areEqual(this.guildAffinityIndex, trackGuildViewed.guildAffinityIndex) && m.areEqual(this.isPending, trackGuildViewed.isPending) && m.areEqual(this.previewEnabled, trackGuildViewed.previewEnabled);
return m.areEqual(this.guildAffinityScore, trackGuildViewed.guildAffinityScore) && m.areEqual(this.guildAffinityIndex, trackGuildViewed.guildAffinityIndex) && m.areEqual(this.isPending, trackGuildViewed.isPending) && m.areEqual(this.previewEnabled, trackGuildViewed.previewEnabled) && m.areEqual(this.postableChannels, trackGuildViewed.postableChannels);
}
public int hashCode() {
@ -48,10 +49,12 @@ public final class TrackGuildViewed implements AnalyticsSchema, TrackBaseReceive
Boolean bool = this.isPending;
int hashCode3 = (hashCode2 + (bool != null ? bool.hashCode() : 0)) * 31;
Boolean bool2 = this.previewEnabled;
if (bool2 != null) {
i = bool2.hashCode();
int hashCode4 = (hashCode3 + (bool2 != null ? bool2.hashCode() : 0)) * 31;
Long l2 = this.postableChannels;
if (l2 != null) {
i = l2.hashCode();
}
return hashCode3 + i;
return hashCode4 + i;
}
public String toString() {
@ -62,6 +65,8 @@ public final class TrackGuildViewed implements AnalyticsSchema, TrackBaseReceive
O.append(", isPending=");
O.append(this.isPending);
O.append(", previewEnabled=");
return a.B(O, this.previewEnabled, ")");
O.append(this.previewEnabled);
O.append(", postableChannels=");
return a.E(O, this.postableChannels, ")");
}
}

View File

@ -19,6 +19,7 @@ public final class Channel {
public static final int DM = 1;
public static final int GROUP_DM = 3;
public static final int GUILD_ANNOUNCEMENT = 5;
public static final int GUILD_FORUM = 15;
public static final int GUILD_STAGE_VOICE = 13;
public static final int GUILD_STORE = 6;
public static final int GUILD_TEXT = 0;

View File

@ -36,10 +36,10 @@ public final class ChannelUtils$getSortByNameAndType$1<T> implements Comparator<
return -1;
} else {
if (channel4.A() != 4) {
if (channel3.A() == 0 && ChannelUtils.r(channel4)) {
if (channel3.A() == 0 && ChannelUtils.s(channel4)) {
return -1;
}
if (!ChannelUtils.r(channel3) || channel4.A() != 0) {
if (!ChannelUtils.s(channel3) || channel4.A() != 0) {
if (channel3.t() != channel4.t()) {
i2 = channel3.t();
i = channel4.t();

View File

@ -22,23 +22,28 @@ public final class ChannelUtils {
private static final long HQ_DIRECTORY_CHANNEL_ID = 883060064561299456L;
public static final boolean A(Channel channel) {
m.checkNotNullParameter(channel, "$this$isTextChannel");
return w(channel) || r(channel);
}
public static final boolean B(Channel channel) {
m.checkNotNullParameter(channel, "$this$isThread");
return channel.A() == 10 || channel.A() == 11 || channel.A() == 12;
}
public static final boolean B(Channel channel) {
public static final boolean C(Channel channel) {
m.checkNotNullParameter(channel, "$this$isThreaded");
return channel.A() == 0 || channel.A() == 5;
return channel.A() == 0 || channel.A() == 5 || channel.A() == 15;
}
public static final boolean C(Channel channel) {
public static final boolean D(Channel channel) {
m.checkNotNullParameter(channel, "$this$isVoiceChannel");
return channel.A() == 2;
}
public static final boolean D(Channel channel) {
public static final boolean E(Channel channel) {
m.checkNotNullParameter(channel, "$this$shouldPlayJoinLeaveSounds");
return C(channel) || v(channel);
return D(channel) || w(channel);
}
public static final User a(Channel channel) {
@ -57,10 +62,10 @@ public final class ChannelUtils {
if (k(channel)) {
return Integer.valueOf((int) R.string.category_has_been_deleted);
}
if (A(channel)) {
if (B(channel)) {
return Integer.valueOf((int) R.string.thread_has_been_deleted);
}
if (v(channel)) {
if (w(channel)) {
return null;
}
return Integer.valueOf((int) R.string.channel_has_been_deleted);
@ -69,7 +74,7 @@ public final class ChannelUtils {
public static final String c(Channel channel) {
String str;
m.checkNotNullParameter(channel, "$this$getDisplayName");
if (v(channel)) {
if (w(channel)) {
String m = channel.m();
if (m == null || m.length() == 0) {
List<com.discord.api.user.User> w2 = channel.w();
@ -91,11 +96,10 @@ public final class ChannelUtils {
m.checkNotNullParameter(channel, "$this$getDisplayNameOrDefault");
m.checkNotNullParameter(context, "context");
String c2 = c(channel);
m.checkNotNullParameter(channel, "$this$isGuildTextChannel");
boolean z3 = true;
if ((channel.A() == 0) || i(channel)) {
if (c2.length() != 0) {
z3 = false;
boolean z3 = false;
if (q(channel) || i(channel)) {
if (c2.length() == 0) {
z3 = true;
}
if (z3) {
String string = context.getString(R.string.invalid_text_channel);
@ -108,9 +112,9 @@ public final class ChannelUtils {
sb.append(c2);
return sb.toString();
}
} else if (r(channel)) {
if (c2.length() != 0) {
z3 = false;
} else if (s(channel)) {
if (c2.length() == 0) {
z3 = true;
}
if (z3) {
String string2 = context.getString(R.string.invalid_voice_channel);
@ -118,8 +122,8 @@ public final class ChannelUtils {
return string2;
}
} else if (p(channel)) {
if (c2.length() != 0) {
z3 = false;
if (c2.length() == 0) {
z3 = true;
}
if (z3) {
String string3 = context.getString(R.string.unnamed);
@ -127,8 +131,8 @@ public final class ChannelUtils {
return string3;
}
} else if (m(channel)) {
if (c2.length() != 0) {
z3 = false;
if (c2.length() == 0) {
z3 = true;
}
if (z3) {
String string4 = context.getString(R.string.direct_message);
@ -216,7 +220,7 @@ public final class ChannelUtils {
}
public static final boolean l(int i) {
return i == 0 || i == 5 || i == 10 || i == 11 || i == 12 || i == 14;
return i == 0 || i == 5 || i == 10 || i == 11 || i == 12 || i == 14 || i == 15;
}
public static final boolean m(Channel channel) {
@ -227,7 +231,7 @@ public final class ChannelUtils {
public static final boolean n(Channel channel, Presence presence) {
m.checkNotNullParameter(channel, "$this$isDMStatusVisible");
User a = a(channel);
return m(channel) && !y(channel) && (a != null ? UserUtils.INSTANCE.isStatusVisible(a, presence, true) : false);
return m(channel) && !z(channel) && (a != null ? UserUtils.INSTANCE.isStatusVisible(a, presence, true) : false);
}
public static final boolean o(Channel channel) {
@ -241,46 +245,51 @@ public final class ChannelUtils {
}
public static final boolean q(Channel channel) {
m.checkNotNullParameter(channel, "$this$isGuildTextChannel");
return channel.A() == 0 || channel.A() == 15;
}
public static final boolean r(Channel channel) {
m.checkNotNullParameter(channel, "$this$isGuildTextyChannel");
return l(channel.A());
}
public static final boolean r(Channel channel) {
public static final boolean s(Channel channel) {
m.checkNotNullParameter(channel, "$this$isGuildVocalChannel");
return channel.A() == 2 || channel.A() == 13;
}
public static final boolean s(Channel channel) {
public static final boolean t(Channel channel) {
m.checkNotNullParameter(channel, "$this$isHQDirectoryChannel");
return channel.h() == HQ_DIRECTORY_CHANNEL_ID;
}
public static final boolean t(Channel channel) {
public static final boolean u(Channel channel) {
m.checkNotNullParameter(channel, "$this$isManaged");
return channel.b() != 0;
}
public static final boolean u(Channel channel) {
public static final boolean v(Channel channel) {
m.checkNotNullParameter(channel, "$this$isMultiUserDM");
return channel.A() == 3;
}
public static final boolean v(Channel channel) {
public static final boolean w(Channel channel) {
m.checkNotNullParameter(channel, "$this$isPrivate");
return channel.A() == 1 || channel.A() == 3;
}
public static final boolean w(Channel channel) {
public static final boolean x(Channel channel) {
m.checkNotNullParameter(channel, "$this$isPrivateThread");
return channel.A() == 12;
}
public static final boolean x(Channel channel) {
public static final boolean y(Channel channel) {
m.checkNotNullParameter(channel, "$this$isStageVoiceChannel");
return channel.A() == 13;
}
public static final boolean y(Channel channel) {
public static final boolean z(Channel channel) {
com.discord.api.user.User user;
m.checkNotNullParameter(channel, "$this$isSystemDM");
if (channel.A() == 1) {
@ -291,9 +300,4 @@ public final class ChannelUtils {
}
return false;
}
public static final boolean z(Channel channel) {
m.checkNotNullParameter(channel, "$this$isTextChannel");
return v(channel) || q(channel);
}
}

View File

@ -5,7 +5,8 @@ public enum SurveyGuildRequirements {
IS_ADMIN("is_admin"),
IS_COMMUNITY("is_community"),
GUILD_SIZE("guild_size"),
IS_HUB("is_hub");
IS_HUB("is_hub"),
GUILD_PERMISSIONS("guild_permissions");
private final String value;

View File

@ -14,6 +14,7 @@ public final class UserFlags {
public static final int MFA_SMS = 16;
public static final int PARTNER = 2;
public static final int PREMIUM_EARLY_SUPPORTER = 512;
public static final int SPAMMER = 1048576;
public static final int STAFF = 1;
public static final int VERIFIED_BOT = 65536;
public static final int VERIFIED_DEVELOPER = 131072;

View File

@ -6,6 +6,7 @@ import java.util.List;
/* compiled from: UserSurvey.kt */
public final class UserSurvey {
private final String cta;
private final List<Long> guild_permissions;
private final List<String> guild_requirements;
private final List<Integer> guild_size;
private final String key;
@ -16,20 +17,20 @@ public final class UserSurvey {
return this.cta;
}
public final List<String> b() {
public final List<Long> b() {
return this.guild_permissions;
}
public final List<String> c() {
return this.guild_requirements;
}
public final List<Integer> c() {
public final List<Integer> d() {
return this.guild_size;
}
public final String d() {
return this.key;
}
public final String e() {
return this.prompt;
return this.key;
}
public boolean equals(Object obj) {
@ -40,10 +41,14 @@ public final class UserSurvey {
return false;
}
UserSurvey userSurvey = (UserSurvey) obj;
return m.areEqual(this.prompt, userSurvey.prompt) && m.areEqual(this.cta, userSurvey.cta) && m.areEqual(this.url, userSurvey.url) && m.areEqual(this.key, userSurvey.key) && m.areEqual(this.guild_requirements, userSurvey.guild_requirements) && m.areEqual(this.guild_size, userSurvey.guild_size);
return m.areEqual(this.prompt, userSurvey.prompt) && m.areEqual(this.cta, userSurvey.cta) && m.areEqual(this.url, userSurvey.url) && m.areEqual(this.key, userSurvey.key) && m.areEqual(this.guild_requirements, userSurvey.guild_requirements) && m.areEqual(this.guild_size, userSurvey.guild_size) && m.areEqual(this.guild_permissions, userSurvey.guild_permissions);
}
public final String f() {
return this.prompt;
}
public final String g() {
return this.url;
}
@ -60,10 +65,12 @@ public final class UserSurvey {
List<String> list = this.guild_requirements;
int hashCode5 = (hashCode4 + (list != null ? list.hashCode() : 0)) * 31;
List<Integer> list2 = this.guild_size;
if (list2 != null) {
i = list2.hashCode();
int hashCode6 = (hashCode5 + (list2 != null ? list2.hashCode() : 0)) * 31;
List<Long> list3 = this.guild_permissions;
if (list3 != null) {
i = list3.hashCode();
}
return hashCode5 + i;
return hashCode6 + i;
}
public String toString() {
@ -78,6 +85,8 @@ public final class UserSurvey {
O.append(", guild_requirements=");
O.append(this.guild_requirements);
O.append(", guild_size=");
return a.H(O, this.guild_size, ")");
O.append(this.guild_size);
O.append(", guild_permissions=");
return a.H(O, this.guild_permissions, ")");
}
}

View File

@ -231,7 +231,7 @@ public final class NotificationTextUtils {
m.checkNotNullParameter(map2, "guildMembers");
m.checkNotNullParameter(map3, "guildSettings");
m.checkNotNullParameter(map4, "joinedThreads");
if (ChannelUtils.t(channel) || (e = message.e()) == null || e.i() == 0 || e.i() == user.getId() || map.containsKey(Long.valueOf(e.i()))) {
if (ChannelUtils.u(channel) || (e = message.e()) == null || e.i() == 0 || e.i() == user.getId() || map.containsKey(Long.valueOf(e.i()))) {
return false;
}
Integer E = message.E();
@ -245,7 +245,7 @@ public final class NotificationTextUtils {
list = n.emptyList();
}
ModelNotificationSettings modelNotificationSettings = (ModelNotificationSettings) a.s0(channel, map3);
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
return isThreadNotificationAllowed(user, list, message, (StoreThreadsJoined.JoinedThread) a.c(channel, map4), modelNotificationSettings, guild, channel, channel2);
}
if (modelNotificationSettings != null) {

View File

@ -30,7 +30,7 @@ public final class StoreAnalytics$trackChannelOpened$$inlined$let$lambda$1 exten
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final Map<String, ? extends Object> mo17invoke() {
Map<String, ? extends Object> plus = h0.plus(ChannelUtils.A(this.$channel) ? StoreAnalytics.access$getThreadSnapshotAnalyticsProperties(this.this$0, this.$channel) : StoreAnalytics.access$getChannelSnapshotAnalyticsProperties(this.this$0, this.$channel, true), g0.mapOf(c0.o.to("channel_view", this.$channelView$inlined.getAnalyticsValue())));
Map<String, ? extends Object> plus = h0.plus(ChannelUtils.B(this.$channel) ? StoreAnalytics.access$getThreadSnapshotAnalyticsProperties(this.this$0, this.$channel) : StoreAnalytics.access$getChannelSnapshotAnalyticsProperties(this.this$0, this.$channel, true), g0.mapOf(c0.o.to("channel_view", this.$channelView$inlined.getAnalyticsValue())));
SelectedChannelAnalyticsLocation selectedChannelAnalyticsLocation = this.$analyticsLocation$inlined;
return selectedChannelAnalyticsLocation != null ? h0.plus(plus, g0.mapOf(c0.o.to(ModelAuditLogEntry.CHANGE_KEY_LOCATION, selectedChannelAnalyticsLocation.getAnalyticsValue()))) : plus;
}

View File

@ -415,7 +415,7 @@ public final class StoreAnalytics extends Store {
} else {
i4 = 0;
for (Channel channel : collection) {
if (ChannelUtils.q(channel) && (i4 = i4 + 1) < 0) {
if (ChannelUtils.r(channel) && (i4 = i4 + 1) < 0) {
n.throwCountOverflow();
}
}
@ -423,7 +423,7 @@ public final class StoreAnalytics extends Store {
pairArr[3] = o.to("guild_num_text_channels", Integer.valueOf(i4));
if (!collection.isEmpty()) {
for (Channel channel2 : collection) {
if (ChannelUtils.r(channel2) && (i5 = i5 + 1) < 0) {
if (ChannelUtils.s(channel2) && (i5 = i5 + 1) < 0) {
n.throwCountOverflow();
}
}

View File

@ -80,6 +80,7 @@ public final class StoreApplicationCommands extends StoreV2 {
private final NonceGenerator nonceGenerator;
private int numRemoteCommands;
private final ObservationDeck observationDeck;
private User pendingBotUser;
private Long pendingGatewayGuildId;
private String query;
private final List<ApplicationCommand> queryCommands;
@ -742,14 +743,22 @@ public final class StoreApplicationCommands extends StoreV2 {
Long l = this.pendingGatewayGuildId;
requestFrecencyCommands(l != null ? l.longValue() : 0);
requestApplications(this.pendingGatewayGuildId);
this.pendingGatewayGuildId = null;
User user = this.pendingBotUser;
if (user != null) {
handleDmUserApplication(user);
this.pendingBotUser = null;
}
}
}
public final void handleDmUserApplication(User user) {
m.checkNotNullParameter(user, "botUser");
if (user.isBot()) {
this.dispatcher.schedule(new StoreApplicationCommands$handleDmUserApplication$1(this, user));
if (!this.connectionReady) {
this.pendingBotUser = user;
} else {
this.dispatcher.schedule(new StoreApplicationCommands$handleDmUserApplication$1(this, user));
}
}
}

View File

@ -287,10 +287,10 @@ public final class StoreChannels extends StoreV2 {
@StoreThread
public final void handleChannelOrThreadCreateOrUpdate(Channel channel) {
m.checkNotNullParameter(channel, "channel");
if (!ChannelUtils.t(channel)) {
long f = !ChannelUtils.v(channel) ? channel.f() : 0;
if (!ChannelUtils.u(channel)) {
long f = !ChannelUtils.w(channel) ? channel.f() : 0;
long h = channel.h();
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
storeThread$app_productionCanaryRelease$default(this, channel, f, null, 4, null);
} else {
Map<Long, Map<Long, Channel>> map = this.channelsByGuild;
@ -325,7 +325,7 @@ public final class StoreChannels extends StoreV2 {
public final void handleChannelOrThreadDelete(Channel channel) {
Map<Long, Channel> map;
m.checkNotNullParameter(channel, "channel");
long f = !ChannelUtils.v(channel) ? channel.f() : 0;
long f = !ChannelUtils.w(channel) ? channel.f() : 0;
long h = channel.h();
if (this.channelsByGuild.containsKey(Long.valueOf(f)) && (map = this.channelsByGuild.get(Long.valueOf(f))) != null && map.containsKey(Long.valueOf(h))) {
Map<Long, Channel> map2 = this.channelsByGuild.get(Long.valueOf(f));
@ -370,7 +370,7 @@ public final class StoreChannels extends StoreV2 {
for (Object obj : privateChannels) {
Channel channel = (Channel) obj;
m.checkNotNullExpressionValue(channel, "it");
if (!ChannelUtils.t(channel)) {
if (!ChannelUtils.u(channel)) {
W.add(obj);
}
}
@ -399,7 +399,7 @@ public final class StoreChannels extends StoreV2 {
List<Channel> L = guild.L();
if (L != null) {
for (Channel channel4 : L) {
if (ChannelUtils.A(channel4)) {
if (ChannelUtils.B(channel4)) {
storeThread$app_productionCanaryRelease$default(this, channel4, guild.p(), null, 4, null);
}
}
@ -512,7 +512,7 @@ public final class StoreChannels extends StoreV2 {
List<Channel> L = guild.L();
if (L != null) {
for (Channel channel2 : L) {
if (ChannelUtils.A(channel2)) {
if (ChannelUtils.B(channel2)) {
storeThread$app_productionCanaryRelease$default(this, channel2, guild.p(), null, 4, null);
}
}
@ -544,7 +544,7 @@ public final class StoreChannels extends StoreV2 {
for (Message message : list) {
Channel thread = message.getThread();
if (thread != null) {
if (!this.threadsById.containsKey(Long.valueOf(thread.h())) && ChannelUtils.A(thread)) {
if (!this.threadsById.containsKey(Long.valueOf(thread.h())) && ChannelUtils.B(thread)) {
storeThread$app_productionCanaryRelease$default(this, thread, 0, null, 6, null);
markChanged();
}
@ -561,7 +561,7 @@ public final class StoreChannels extends StoreV2 {
List<Channel> threads = searchState.getThreads();
if (threads != null) {
for (Channel channel : threads) {
if (!this.threadsById.containsKey(Long.valueOf(channel.h())) && ChannelUtils.A(channel)) {
if (!this.threadsById.containsKey(Long.valueOf(channel.h())) && ChannelUtils.B(channel)) {
storeThread$app_productionCanaryRelease$default(this, channel, 0, null, 6, null);
markChanged();
}
@ -571,7 +571,7 @@ public final class StoreChannels extends StoreV2 {
if (hits != null) {
for (Message message : hits) {
Channel thread = message.getThread();
if (thread != null && !this.threadsById.containsKey(Long.valueOf(thread.h())) && ChannelUtils.A(thread)) {
if (thread != null && !this.threadsById.containsKey(Long.valueOf(thread.h())) && ChannelUtils.B(thread)) {
storeThread$app_productionCanaryRelease$default(this, thread, 0, null, 6, null);
markChanged();
}
@ -588,7 +588,7 @@ public final class StoreChannels extends StoreV2 {
@StoreThread
public final void handleThreadCreateOrUpdate(Channel channel) {
m.checkNotNullParameter(channel, "channel");
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
handleChannelOrThreadCreateOrUpdate(channel);
}
}
@ -598,7 +598,7 @@ public final class StoreChannels extends StoreV2 {
m.checkNotNullParameter(modelThreadListSync, "payload");
if (!modelThreadListSync.getThreads().isEmpty()) {
for (Channel channel : modelThreadListSync.getThreads()) {
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
storeThread$app_productionCanaryRelease$default(this, channel, modelThreadListSync.getGuildId(), null, 4, null);
}
}

View File

@ -651,7 +651,7 @@ public final class StoreChannelsSelected extends StoreV2 {
ArrayList arrayList = new ArrayList();
for (Object obj : values) {
Channel channel = (Channel) obj;
if (channel.f() == j && ChannelUtils.q(channel) && PermissionUtils.hasAccess(channel, map2)) {
if (channel.f() == j && ChannelUtils.r(channel) && PermissionUtils.hasAccess(channel, map2)) {
arrayList.add(obj);
}
}
@ -659,7 +659,7 @@ public final class StoreChannelsSelected extends StoreV2 {
}
private final boolean isValidResolution(Channel channel, long j, Map<Long, Long> map) {
return channel.f() == j && ChannelUtils.z(channel) && PermissionUtils.hasAccess(channel, map);
return channel.f() == j && ChannelUtils.A(channel) && PermissionUtils.hasAccess(channel, map);
}
@StoreThread

View File

@ -32,7 +32,7 @@ public final class StoreInviteSettings$getInvitableChannels$1<T1, T2, R> impleme
Channel channel = map.get(Long.valueOf(longValue));
if (channel != null) {
m.checkNotNullParameter(channel, "$this$isInvitableChannel");
if ((ChannelUtils.q(channel) || ChannelUtils.r(channel)) && PermissionUtils.INSTANCE.hasAccess(channel, Long.valueOf(longValue2)) && PermissionUtils.can(1, Long.valueOf(longValue2))) {
if ((ChannelUtils.r(channel) || ChannelUtils.s(channel)) && PermissionUtils.INSTANCE.hasAccess(channel, Long.valueOf(longValue2)) && PermissionUtils.can(1, Long.valueOf(longValue2))) {
hashMap.put(Long.valueOf(longValue), channel);
}
}

View File

@ -35,7 +35,7 @@ public final class StoreMediaSettings$init$1<T, R> implements b<Long, Observable
}
public final Observable<? extends Boolean> call(Channel channel) {
if (channel == null || ChannelUtils.v(channel) || ChannelUtils.x(channel)) {
if (channel == null || ChannelUtils.w(channel) || ChannelUtils.y(channel)) {
return new j(Boolean.TRUE);
}
StorePermissions access$getStorePermissions$p = StoreMediaSettings.access$getStorePermissions$p(this.this$0.this$0);

View File

@ -528,7 +528,7 @@ public final class StoreMediaSettings extends Store {
@StoreThread
public final void handleVoiceChannelSelected(long j) {
Channel findChannelByIdInternal$app_productionCanaryRelease = this.storeChannels.findChannelByIdInternal$app_productionCanaryRelease(j);
if (findChannelByIdInternal$app_productionCanaryRelease != null && ChannelUtils.v(findChannelByIdInternal$app_productionCanaryRelease)) {
if (findChannelByIdInternal$app_productionCanaryRelease != null && ChannelUtils.w(findChannelByIdInternal$app_productionCanaryRelease)) {
setSelfDeafen(false);
}
}

View File

@ -148,7 +148,7 @@ public final class StoreMentions extends StoreV2 {
if (user == null || user.i() != this.myId) {
if ((utcDateTime != null ? utcDateTime.g() : 0) <= 0) {
Channel channel = this.storeChannels.getChannel(j);
if (channel != null && ChannelUtils.A(channel) && !this.storeThreadsJoined.hasJoined(j)) {
if (channel != null && ChannelUtils.B(channel) && !this.storeThreadsJoined.hasJoined(j)) {
return false;
}
Map<Long, ModelNotificationSettings> guildSettingsInternal$app_productionCanaryRelease = this.storeUserGuildSettings.getGuildSettingsInternal$app_productionCanaryRelease();
@ -240,7 +240,7 @@ public final class StoreMentions extends StoreV2 {
public final void handleChannelOrThreadCreateOrUpdate(Channel channel) {
m.checkNotNullParameter(channel, "channel");
this.channelGuildIds.put(Long.valueOf(channel.h()), Long.valueOf(channel.f()));
if (ChannelUtils.v(channel) && !ChannelUtils.t(channel)) {
if (ChannelUtils.w(channel) && !ChannelUtils.u(channel)) {
this.privateChannels.add(Long.valueOf(channel.h()));
}
}
@ -277,7 +277,7 @@ public final class StoreMentions extends StoreV2 {
for (Object obj : privateChannels) {
Channel channel = (Channel) obj;
m.checkNotNullExpressionValue(channel, "it");
if (!ChannelUtils.t(channel)) {
if (!ChannelUtils.u(channel)) {
W.add(obj);
}
}

View File

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

View File

@ -572,7 +572,7 @@ public final class StoreMessageAck extends StoreV2 {
ArrayList arrayList = new ArrayList();
for (Object obj2 : g) {
Channel channel = (Channel) obj2;
if (ChannelUtils.q(channel) && !this.acks.containsKey(Long.valueOf(channel.h()))) {
if (ChannelUtils.r(channel) && !this.acks.containsKey(Long.valueOf(channel.h()))) {
arrayList.add(obj2);
}
}

View File

@ -59,7 +59,7 @@ public final class StoreMessagesMostRecent extends StoreV2 {
@StoreThread
private final void mostRecentIdsUpdateFromChannels(Collection<Channel> collection) {
for (Channel channel : collection) {
if (ChannelUtils.z(channel) && updateMostRecentIds(channel.h(), channel.i())) {
if (ChannelUtils.A(channel) && updateMostRecentIds(channel.h(), channel.i())) {
markChanged();
}
}
@ -114,7 +114,7 @@ public final class StoreMessagesMostRecent extends StoreV2 {
if (L != null) {
Collection<Channel> arrayList = new ArrayList<>();
for (Channel channel : L) {
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
arrayList.add(channel);
}
}
@ -135,7 +135,7 @@ public final class StoreMessagesMostRecent extends StoreV2 {
if (L != null) {
Collection<Channel> arrayList = new ArrayList<>();
for (Channel channel : L) {
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
arrayList.add(channel);
}
}
@ -152,7 +152,7 @@ public final class StoreMessagesMostRecent extends StoreV2 {
@StoreThread
public final void handleThreadCreateOrUpdate(Channel channel) {
m.checkNotNullParameter(channel, "channel");
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
mostRecentIdsUpdateFromChannels(c0.t.m.listOf(channel));
}
}
@ -163,7 +163,7 @@ public final class StoreMessagesMostRecent extends StoreV2 {
List<Channel> threads = modelThreadListSync.getThreads();
Collection<Channel> arrayList = new ArrayList<>();
for (Channel channel : threads) {
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
arrayList.add(channel);
}
}

View File

@ -29,7 +29,7 @@ public final class StorePendingReplies$onCreatePendingReply$1 extends o implemen
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo17invoke() {
StorePendingReplies.access$getPendingReplies$p(this.this$0).put(Long.valueOf(this.$channel.h()), new StorePendingReplies.PendingReply(new MessageReference(ChannelUtils.v(this.$channel) ? null : Long.valueOf(this.$channel.f()), Long.valueOf(this.$channel.h()), Long.valueOf(this.$message.getId())), this.$message, this.$shouldMention, this.$showMentionToggle));
StorePendingReplies.access$getPendingReplies$p(this.this$0).put(Long.valueOf(this.$channel.h()), new StorePendingReplies.PendingReply(new MessageReference(ChannelUtils.w(this.$channel) ? null : Long.valueOf(this.$channel.f()), Long.valueOf(this.$channel.h()), Long.valueOf(this.$message.getId())), this.$message, this.$shouldMention, this.$showMentionToggle));
this.this$0.markChanged();
}
}

View File

@ -97,7 +97,7 @@ public final class StorePermissions extends StoreV2 {
LinkedHashMap linkedHashMap = new LinkedHashMap(f.coerceAtLeast(g0.mapCapacity(o.collectionSizeOrDefault(iterable, 10)), 16));
for (Channel channel : iterable) {
boolean hasJoinedInternal = this.storeThreadsJoined.hasJoinedInternal(channel.h());
Pair pair = c0.o.to(Long.valueOf(channel.h()), Long.valueOf(ChannelUtils.v(channel) ? Permission.ALL : PermissionUtils.computePermissions(getMeId(), channel, this.storeChannels.getGuildChannelInternal$app_productionCanaryRelease(channel.f(), channel.r()), guild.getOwnerId(), map != null ? map.get(Long.valueOf(getMeId())) : null, map2, stageInstancesForGuildInternal, hasJoinedInternal)));
Pair pair = c0.o.to(Long.valueOf(channel.h()), Long.valueOf(ChannelUtils.w(channel) ? Permission.ALL : PermissionUtils.computePermissions(getMeId(), channel, this.storeChannels.getGuildChannelInternal$app_productionCanaryRelease(channel.f(), channel.r()), guild.getOwnerId(), map != null ? map.get(Long.valueOf(getMeId())) : null, map2, stageInstancesForGuildInternal, hasJoinedInternal)));
linkedHashMap.put(pair.getFirst(), pair.getSecond());
}
return linkedHashMap;

View File

@ -101,10 +101,10 @@ public final class StoreReadStates extends Store {
StoreThreadsActiveJoined.ActiveJoinedThread activeJoinedThread2 = map7.get(Long.valueOf(longValue));
channel = activeJoinedThread2 != null ? activeJoinedThread2.getChannel() : null;
}
if (channel != null && !ChannelUtils.v(channel) && (!ChannelUtils.A(channel) || activeJoinedThread != null)) {
if (channel != null && !ChannelUtils.w(channel) && (!ChannelUtils.B(channel) || activeJoinedThread != null)) {
if (PermissionUtils.INSTANCE.hasAccess(channel, map.get(Long.valueOf(longValue))) && !isChannelMuted(channel, map4)) {
StoreMessageAck.Ack ack = map5.get(Long.valueOf(longValue));
if (ack != null || !ChannelUtils.A(channel)) {
if (ack != null || !ChannelUtils.B(channel)) {
if (ack != null) {
j = ack.getMessageId();
} else {
@ -115,7 +115,7 @@ public final class StoreReadStates extends Store {
hashSet.add(Long.valueOf(longValue));
Channel channel2 = map2.get(Long.valueOf(channel.r()));
boolean isChannelMuted = isChannelMuted(channel2, map4);
if (!isChannelMuted && ChannelUtils.A(channel) && channel2 != null) {
if (!isChannelMuted && ChannelUtils.B(channel) && channel2 != null) {
isChannelMuted = isChannelMuted(map2.get(Long.valueOf(channel2.r())), map4);
}
if (!isChannelMuted) {

View File

@ -21,7 +21,7 @@ public final class StoreSearchData$getGuildSearchData$1<T, R> implements b<Map<L
m.checkNotNullExpressionValue(map, "guildChannels");
LinkedHashMap linkedHashMap = new LinkedHashMap();
for (Map.Entry<Long, Channel> entry : map.entrySet()) {
if (ChannelUtils.q(entry.getValue())) {
if (ChannelUtils.r(entry.getValue())) {
linkedHashMap.put(entry.getKey(), entry.getValue());
}
}

View File

@ -17,7 +17,7 @@ public final class StoreStageChannels$stageChannelIdsInGuildForDispatch$1 extend
m.checkNotNullParameter(channel, "channel");
Long valueOf = Long.valueOf(channel.h());
valueOf.longValue();
if (ChannelUtils.x(channel)) {
if (ChannelUtils.y(channel)) {
return valueOf;
}
return null;

View File

@ -486,7 +486,7 @@ public final class StoreStageChannels extends StoreV2 {
@StoreThread
public final void handleChannelDelete(Channel channel) {
m.checkNotNullParameter(channel, "channel");
if (ChannelUtils.x(channel)) {
if (ChannelUtils.y(channel)) {
if (this.stageRolesByChannel.remove(Long.valueOf(channel.h())) != null) {
this.dirtyChannelIds.add(Long.valueOf(channel.h()));
markChanged();
@ -591,7 +591,7 @@ public final class StoreStageChannels extends StoreV2 {
long longValue = (voiceState == null || (a2 = voiceState.a()) == null) ? j2 : a2.longValue();
Channel channelInternal$app_productionCanaryRelease = this.channelsStore.getChannelInternal$app_productionCanaryRelease(j, longValue);
Channel channelInternal$app_productionCanaryRelease2 = this.channelsStore.getChannelInternal$app_productionCanaryRelease(j, j2);
if (channelInternal$app_productionCanaryRelease2 != null && ChannelUtils.x(channelInternal$app_productionCanaryRelease2) && (voiceState == null || (a = voiceState.a()) == null || a.longValue() != j2)) {
if (channelInternal$app_productionCanaryRelease2 != null && ChannelUtils.y(channelInternal$app_productionCanaryRelease2) && (voiceState == null || (a = voiceState.a()) == null || a.longValue() != j2)) {
Map<Long, StageRoles> map2 = this.stageRolesByChannel.get(Long.valueOf(j2));
if (map2 != null) {
stageRoles = map2.remove(Long.valueOf(j3));
@ -601,7 +601,7 @@ public final class StoreStageChannels extends StoreV2 {
m24handleUserLeftStageOrLostRolesGM3QuyE$default(this, channelInternal$app_productionCanaryRelease2, j3, stageRoles.m45unboximpl(), 0, 8, null);
this.dirtyChannelIds.add(Long.valueOf(j2));
markChanged();
if (voiceState != null && channelInternal$app_productionCanaryRelease != null && ChannelUtils.x(channelInternal$app_productionCanaryRelease) == z2) {
if (voiceState != null && channelInternal$app_productionCanaryRelease != null && ChannelUtils.y(channelInternal$app_productionCanaryRelease) == z2) {
Map<Long, StageRoles> map3 = this.stageRolesByChannel.get(Long.valueOf(longValue));
if (map3 == null) {
map3 = new LinkedHashMap<>();

View File

@ -267,7 +267,7 @@ public final class StoreThreadMessages extends StoreV2 {
public final void handleMessageCreate(com.discord.api.message.Message message) {
m.checkNotNullParameter(message, "message");
Channel channel = this.storeChannels.getChannel(message.g());
if (channel != null && ChannelUtils.A(channel)) {
if (channel != null && ChannelUtils.B(channel)) {
ThreadState orAddState = getOrAddState(channel);
this.threads.put(Long.valueOf(channel.h()), ThreadState.copy$default(orAddState, 0, 0, 0, f.coerceAtMost(orAddState.getCount() + 1, 50), new Message(message), 7, null));
markChanged();
@ -320,7 +320,7 @@ public final class StoreThreadMessages extends StoreV2 {
if (z4) {
markChanged();
}
if (channelChunk.isPresent() && (channel = this.storeChannels.getThreadsByIdInternal$app_productionCanaryRelease().get(Long.valueOf(channelChunk.getChannelId()))) != null && ChannelUtils.A(channel)) {
if (channelChunk.isPresent() && (channel = this.storeChannels.getThreadsByIdInternal$app_productionCanaryRelease().get(Long.valueOf(channelChunk.getChannelId()))) != null && ChannelUtils.B(channel)) {
ThreadState orAddState = getOrAddState(channel);
if (channelChunk.getMessages().isEmpty()) {
this.threads.put(Long.valueOf(channel.h()), ThreadState.copy$default(orAddState, 0, 0, 0, 0, null, 7, null));

View File

@ -116,7 +116,7 @@ public final class StoreThreadsActive extends StoreV2 {
ArrayList arrayList = new ArrayList();
for (Object obj : threadsForGuildInternal$app_productionCanaryRelease) {
Channel channel = (Channel) obj;
if (ChannelUtils.A(channel) && ((y2 = channel.y()) == null || !y2.b())) {
if (ChannelUtils.B(channel) && ((y2 = channel.y()) == null || !y2.b())) {
arrayList.add(obj);
}
}
@ -184,7 +184,7 @@ public final class StoreThreadsActive extends StoreV2 {
@StoreThread
public final void handleThreadCreateOrUpdate(Channel channel) {
m.checkNotNullParameter(channel, "channel");
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
ThreadMetadata y2 = channel.y();
if (y2 == null || !y2.b()) {
Map<Long, Map<Long, Channel>> map = this.threadsByGuild;
@ -220,7 +220,7 @@ public final class StoreThreadsActive extends StoreV2 {
}
Map<Long, Channel> map3 = map2;
for (Channel channel : modelThreadListSync.getThreads()) {
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
map3.put(Long.valueOf(channel.h()), channel);
}
}

View File

@ -205,7 +205,7 @@ public final class StoreThreadsJoined extends StoreV2 {
List<Channel> L = guild.L();
if (L != null) {
for (Channel channel : L) {
if (ChannelUtils.A(channel) && (j = channel.j()) != null) {
if (ChannelUtils.B(channel) && (j = channel.j()) != null) {
this.joinedThreads.put(Long.valueOf(channel.h()), new JoinedThread(channel.h(), guild.p(), j.a(), j.e(), new ModelMuteConfig(j.d()), j.c()));
markChanged();
}

View File

@ -34,7 +34,7 @@ public final class StoreUserGuildSettings$setChannelMuted$1 extends o implements
Channel findChannelByIdInternal$app_productionCanaryRelease = StoreUserGuildSettings.access$getStoreChannels$p(this.this$0).findChannelByIdInternal$app_productionCanaryRelease(this.$channelId);
if (findChannelByIdInternal$app_productionCanaryRelease != null) {
StoreUserGuildSettings.SettingsUpdateType access$getSettingsUpdateType = StoreUserGuildSettings.access$getSettingsUpdateType(this.this$0, findChannelByIdInternal$app_productionCanaryRelease);
if (ChannelUtils.A(findChannelByIdInternal$app_productionCanaryRelease)) {
if (ChannelUtils.B(findChannelByIdInternal$app_productionCanaryRelease)) {
StoreThreadsJoined.JoinedThread joinedThread = StoreUserGuildSettings.access$getStoreThreadsJoined$p(this.this$0).getJoinedThread(findChannelByIdInternal$app_productionCanaryRelease.h());
StoreUserGuildSettings.access$updateThreadMemberSettings(this.this$0, this.$context, findChannelByIdInternal$app_productionCanaryRelease.h(), findChannelByIdInternal$app_productionCanaryRelease.r(), new RestAPIParams.ThreadMemberSettings(null, Boolean.valueOf(this.$muted), this.$muteConfig, 1, null), joinedThread != null ? joinedThread.getFlags() : 0);
return;

View File

@ -203,7 +203,7 @@ public final class StoreUserGuildSettings extends StoreV2 {
}
private final SettingsUpdateType getSettingsUpdateType(Channel channel) {
return ChannelUtils.A(channel) ? SettingsUpdateType.THREAD : ChannelUtils.z(channel) ? SettingsUpdateType.CHANNEL : SettingsUpdateType.CATEGORY;
return ChannelUtils.B(channel) ? SettingsUpdateType.THREAD : ChannelUtils.A(channel) ? SettingsUpdateType.CHANNEL : SettingsUpdateType.CATEGORY;
}
@StoreThread
@ -342,7 +342,7 @@ public final class StoreUserGuildSettings extends StoreV2 {
m.checkNotNullParameter(context, "context");
m.checkNotNullParameter(channel, "channel");
SettingsUpdateType settingsUpdateType = getSettingsUpdateType(channel);
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
int i2 = i == ModelNotificationSettings.FREQUENCY_NOTHING ? 8 : i == ModelNotificationSettings.FREQUENCY_MENTIONS ? 4 : 2;
StoreThreadsJoined.JoinedThread joinedThread = this.storeThreadsJoined.getJoinedThread(channel.h());
updateThreadMemberSettings(context, channel.h(), channel.r(), new RestAPIParams.ThreadMemberSettings(Integer.valueOf(i2), null, null, 6, null), joinedThread != null ? joinedThread.getFlags() : 0);
@ -359,7 +359,7 @@ public final class StoreUserGuildSettings extends StoreV2 {
public final void setChannelNotificationsDefault(Context context, Channel channel) {
m.checkNotNullParameter(context, "context");
m.checkNotNullParameter(channel, "channel");
if (!ChannelUtils.A(channel)) {
if (!ChannelUtils.B(channel)) {
updateUserGuildSettings(context, channel.f(), new RestAPIParams.UserGuildSettings(channel.h(), new RestAPIParams.UserGuildSettings.ChannelOverride(Boolean.FALSE, null, Integer.valueOf(ModelNotificationSettings.FREQUENCY_UNSET))), getSettingsUpdateType(channel));
}
}

View File

@ -16,6 +16,6 @@ public final class StoreUserSurvey$fetchUserSurvey$1 extends o implements Functi
public final TrackNetworkMetadataReceiver invoke(UserSurveyFetchResponse userSurveyFetchResponse) {
UserSurvey a;
return new TrackNetworkActionUserSurveyFetch((userSurveyFetchResponse == null || (a = userSurveyFetchResponse.a()) == null) ? null : a.d());
return new TrackNetworkActionUserSurveyFetch((userSurveyFetchResponse == null || (a = userSurveyFetchResponse.a()) == null) ? null : a.e());
}
}

View File

@ -15,6 +15,7 @@ import com.discord.utilities.permissions.PermissionUtils;
import com.discord.utilities.rest.RestAPI;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.time.Clock;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import kotlin.jvm.functions.Function0;
@ -91,11 +92,12 @@ public final class StoreUserSurvey extends StoreV2 {
}
private final boolean meetsGuildRequirements(UserSurvey userSurvey) {
List<String> b = userSurvey.b();
if (b.isEmpty()) {
boolean z2;
List<String> c2 = userSurvey.c();
if (c2.isEmpty()) {
return true;
}
for (String str : b) {
for (String str : c2) {
if (!StoreUserSurveyKt.getIMPLEMENTED_GUILD_REQUIREMENTS().contains(str)) {
return false;
}
@ -104,21 +106,44 @@ public final class StoreUserSurvey extends StoreV2 {
for (Map.Entry<Long, Guild> entry : this.storeGuilds.getGuilds().entrySet()) {
long longValue = entry.getKey().longValue();
Guild value = entry.getValue();
if (!b.contains(SurveyGuildRequirements.IS_COMMUNITY.getValue()) || value.getFeatures().contains(GuildFeature.COMMUNITY)) {
if (!b.contains(SurveyGuildRequirements.IS_HUB.getValue()) || value.getFeatures().contains(GuildFeature.HUB)) {
if (b.contains(SurveyGuildRequirements.GUILD_SIZE.getValue())) {
Integer num = userSurvey.c().get(0);
Integer num2 = userSurvey.c().get(1);
if (!c2.contains(SurveyGuildRequirements.IS_COMMUNITY.getValue()) || value.getFeatures().contains(GuildFeature.COMMUNITY)) {
if (!c2.contains(SurveyGuildRequirements.IS_HUB.getValue()) || value.getFeatures().contains(GuildFeature.HUB)) {
if (c2.contains(SurveyGuildRequirements.GUILD_SIZE.getValue())) {
Integer num = userSurvey.d().get(0);
Integer num2 = userSurvey.d().get(1);
int memberCount = value.getMemberCount();
if (num == null || memberCount >= num.intValue()) {
if (num2 != null && memberCount > num2.intValue()) {
}
}
}
Map<Long, Long> guildPermissions = this.storePermissions.getGuildPermissions();
if (c2.contains(SurveyGuildRequirements.GUILD_PERMISSIONS.getValue())) {
List<Long> b = userSurvey.b();
if (b.isEmpty()) {
continue;
} else {
Iterator<Long> it = b.iterator();
while (true) {
if (it.hasNext()) {
if (PermissionUtils.can(it.next().longValue(), guildPermissions.get(Long.valueOf(longValue)))) {
z2 = true;
break;
}
} else {
z2 = false;
break;
}
}
if (!z2) {
continue;
}
}
}
boolean isOwner = value.isOwner(me2.getId());
boolean can = PermissionUtils.can(8, this.storePermissions.getGuildPermissions().get(Long.valueOf(longValue)));
if (!b.contains(SurveyGuildRequirements.IS_OWNER.getValue()) || isOwner) {
if (!b.contains(SurveyGuildRequirements.IS_ADMIN.getValue()) || can) {
boolean can = PermissionUtils.can(8, guildPermissions.get(Long.valueOf(longValue)));
if (!c2.contains(SurveyGuildRequirements.IS_OWNER.getValue()) || isOwner) {
if (!c2.contains(SurveyGuildRequirements.IS_ADMIN.getValue()) || can) {
return true;
}
}

View File

@ -10,8 +10,8 @@ public final class StoreUserSurveyKt {
static {
SurveyGuildRequirements[] values = SurveyGuildRequirements.values();
ArrayList arrayList = new ArrayList(5);
for (int i = 0; i < 5; i++) {
ArrayList arrayList = new ArrayList(6);
for (int i = 0; i < 6; i++) {
arrayList.add(values[i].getValue());
}
IMPLEMENTED_GUILD_REQUIREMENTS = u.toSet(arrayList);

View File

@ -150,7 +150,7 @@ public final class StoreVoiceChannelSelected extends StoreV2 implements Dispatch
@StoreThread
private final void clearInternal() {
Channel channel = StoreStream.Companion.getChannels().getChannel(this.selectedVoiceChannelId);
if (channel != null && ChannelUtils.D(channel)) {
if (channel != null && ChannelUtils.E(channel)) {
AppSoundManager.Provider.INSTANCE.get().play(AppSound.Companion.getSOUND_USER_LEFT());
}
selectVoiceChannelInternal(0, false);
@ -253,7 +253,7 @@ public final class StoreVoiceChannelSelected extends StoreV2 implements Dispatch
}
long j2 = this.selectedVoiceChannelId;
if (z3) {
if (!z2 && (channel = StoreStream.Companion.getChannels().getChannel(j)) != null && ChannelUtils.D(channel)) {
if (!z2 && (channel = StoreStream.Companion.getChannels().getChannel(j)) != null && ChannelUtils.E(channel)) {
AppSoundManager.Provider.INSTANCE.get().play(AppSound.Companion.getSOUND_USER_JOINED());
}
this.selectedVoiceChannelId = j;
@ -419,7 +419,7 @@ public final class StoreVoiceChannelSelected extends StoreV2 implements Dispatch
public final Observable<JoinVoiceChannelResult> selectVoiceChannel(long j) {
Channel channel = this.stream.getChannels$app_productionCanaryRelease().getChannel(j);
if (channel != null && ChannelUtils.x(channel)) {
if (channel != null && ChannelUtils.y(channel)) {
StoreStream.Companion.getMediaEngine().setAudioInputEnabled(false);
}
PublishSubject j0 = PublishSubject.j0();

View File

@ -162,7 +162,7 @@ public final class StoreVoiceParticipants$get$1<T, R> implements b<Channel, Obse
if (channel == null) {
return new j(h0.emptyMap());
}
long f = ChannelUtils.v(channel) ? 0 : channel.f();
long f = ChannelUtils.w(channel) ? 0 : channel.f();
return this.this$0.getStream().getVoiceStates$app_productionCanaryRelease().observe(f, channel.h()).X(new AnonymousClass1(this, channel, f));
}
}

View File

@ -439,11 +439,11 @@ public final class StoreVoiceParticipants extends Store {
}
private final Observable<Collection<User>> getOtherVoiceUsers(Channel channel, Map<Long, VoiceState> map) {
if (ChannelUtils.v(channel)) {
if (ChannelUtils.w(channel)) {
j jVar = new j(ChannelUtils.g(channel));
m.checkNotNullExpressionValue(jVar, "Observable.just(channel.getRecipients())");
return jVar;
} else if (ChannelUtils.r(channel)) {
} else if (ChannelUtils.s(channel)) {
Observable<R> X = StoreStream.Companion.getUsers().observeMeId().X(new StoreVoiceParticipants$getOtherVoiceUsers$1(channel, map));
m.checkNotNullExpressionValue(X, "StoreStream\n … }\n }");
return X;

View File

@ -77,7 +77,7 @@ public final class StoreUIEventHandler {
int i;
Channel channel;
StageRoles r0;
if (status != KrispOveruseDetector.Status.FAILED || (channel = this.channelsStore.getChannel(this.voiceChannelSelectedStore.getSelectedVoiceChannelId())) == null || !ChannelUtils.x(channel) || (r0 = this.stageChannelsStore.m26getMyRolesvisDeB4(channel.h())) == null || !StageRoles.m40isAudienceimpl(r0.m45unboximpl())) {
if (status != KrispOveruseDetector.Status.FAILED || (channel = this.channelsStore.getChannel(this.voiceChannelSelectedStore.getSelectedVoiceChannelId())) == null || !ChannelUtils.y(channel) || (r0 = this.stageChannelsStore.m26getMyRolesvisDeB4(channel.h())) == null || !StageRoles.m40isAudienceimpl(r0.m45unboximpl())) {
int ordinal = status.ordinal();
if (ordinal == 0) {
i = R.string.mobile_noise_cancellation_cpu_overuse;

View File

@ -35,8 +35,8 @@ public final class ChannelSelector$selectChannel$2 extends o implements Function
public final void invoke(Channel channel) {
m.checkNotNullExpressionValue(channel, "channel");
ChannelSelector.access$gotoChannel(this.this$0, this.$guildId, ChannelUtils.r(channel) ? this.$guildId : this.$channelId, this.$peekParent, this.$analyticsLocation);
if (ChannelUtils.r(channel)) {
ChannelSelector.access$gotoChannel(this.this$0, this.$guildId, ChannelUtils.s(channel) ? this.$guildId : this.$channelId, this.$peekParent, this.$analyticsLocation);
if (ChannelUtils.s(channel)) {
this.this$0.getStream().getVoiceChannelSelected$app_productionCanaryRelease().selectVoiceChannel(this.$channelId);
}
}

View File

@ -173,7 +173,7 @@ public final class InviteEmbedModel {
ModelInvite resolvedInvite = getResolvedInvite(str);
if (resolvedInvite != null) {
Channel channel = resolvedInvite.getChannel();
if (!(channel != null && ChannelUtils.x(channel))) {
if (!(channel != null && ChannelUtils.y(channel))) {
channel = null;
}
if (channel != null) {

View File

@ -103,10 +103,12 @@ public final class NotificationData {
private final String messageContent;
private final long messageId;
private final int messageType;
private final NotificationType notificationType;
private final int relationshipType;
private final String stageInstanceTopic;
private final Sticker sticker;
private final String subtitle;
private final String title;
private final String type;
private final String userAvatar;
private final Integer userDiscriminator;
@ -291,6 +293,7 @@ public final class NotificationData {
public static final /* synthetic */ int[] $EnumSwitchMapping$3;
public static final /* synthetic */ int[] $EnumSwitchMapping$4;
public static final /* synthetic */ int[] $EnumSwitchMapping$5;
public static final /* synthetic */ int[] $EnumSwitchMapping$6;
static {
GuildScheduledEventEntityType.values();
@ -320,18 +323,22 @@ public final class NotificationData {
iArr4[guildScheduledEventEntityType.ordinal()] = 1;
iArr4[guildScheduledEventEntityType2.ordinal()] = 2;
iArr4[guildScheduledEventEntityType3.ordinal()] = 3;
GuildScheduledEventEntityType.values();
int[] iArr5 = new int[5];
NotificationType.values();
int[] iArr5 = new int[1];
$EnumSwitchMapping$4 = iArr5;
iArr5[guildScheduledEventEntityType.ordinal()] = 1;
iArr5[guildScheduledEventEntityType2.ordinal()] = 2;
iArr5[guildScheduledEventEntityType3.ordinal()] = 3;
iArr5[NotificationType.Reminder.ordinal()] = 1;
GuildScheduledEventEntityType.values();
int[] iArr6 = new int[5];
$EnumSwitchMapping$5 = iArr6;
iArr6[guildScheduledEventEntityType.ordinal()] = 1;
iArr6[guildScheduledEventEntityType2.ordinal()] = 2;
iArr6[guildScheduledEventEntityType3.ordinal()] = 3;
GuildScheduledEventEntityType.values();
int[] iArr7 = new int[5];
$EnumSwitchMapping$6 = iArr7;
iArr7[guildScheduledEventEntityType.ordinal()] = 1;
iArr7[guildScheduledEventEntityType2.ordinal()] = 2;
iArr7[guildScheduledEventEntityType3.ordinal()] = 3;
}
}
@ -339,7 +346,7 @@ public final class NotificationData {
this(new HashMap());
}
public NotificationData(String str, long j, MessageActivityType messageActivityType, String str2, int i, String str3, Channel channel, List<Long> list, long j2, String str4, Integer num, String str5, String str6, int i2, long j3, String str7, String str8, int i3, String str9, long j4, String str10, String str11, Sticker sticker, String str12, String str13, GuildScheduledEventEntityType guildScheduledEventEntityType) {
public NotificationData(String str, long j, MessageActivityType messageActivityType, String str2, int i, String str3, Channel channel, List<Long> list, long j2, String str4, Integer num, String str5, String str6, int i2, long j3, String str7, String str8, int i3, String str9, long j4, String str10, String str11, Sticker sticker, String str12, String str13, String str14, GuildScheduledEventEntityType guildScheduledEventEntityType, NotificationType notificationType) {
m.checkNotNullParameter(str, "type");
m.checkNotNullParameter(channel, "channel");
m.checkNotNullParameter(list, "ackChannelIds");
@ -365,9 +372,11 @@ public final class NotificationData {
this.applicationName = str10;
this.applicationIcon = str11;
this.sticker = sticker;
this.subtitle = str12;
this.stageInstanceTopic = str13;
this.title = str12;
this.subtitle = str13;
this.stageInstanceTopic = str14;
this.guildScheduledEventEntityType = guildScheduledEventEntityType;
this.notificationType = notificationType;
Long valueOf = Long.valueOf(j3);
boolean z2 = false;
long j5 = -1;
@ -389,7 +398,7 @@ public final class NotificationData {
/* JADX WARNING: Illegal instructions before constructor call */
public NotificationData(Map<String, String> map) {
this(r1, r1, r6, r7, r8, r9, r49, r11, r12, r14, r15, r16, r17, r18, r19, r21, r22, r23, r24, r25, r27, r28, r29, r30, r31, (r0 == null || (r0 = s.toIntOrNull(r0)) == null) ? null : GuildScheduledEventEntityType.Companion.a(r0.intValue()));
this(r1, r1, r6, r7, r8, r9, r49, r11, r12, r14, r15, r16, r17, r18, r19, r21, r22, r23, r24, r25, r27, r28, r29, r30, r31, r32, r33, r0 != null ? NotificationType.Companion.parse(r0) : null);
Integer intOrNull;
Long longOrNull;
Integer intOrNull2;
@ -443,9 +452,12 @@ public final class NotificationData {
String str23 = map.get("application_name");
String str24 = map.get("application_icon");
Sticker parseFromMessageNotificationJson = StickerUtils.INSTANCE.parseFromMessageNotificationJson(map.get("message"));
String str25 = map.get("subtitle");
String str26 = map.get("stage_instance_topic");
String str27 = map.get("guild_scheduled_event_entity_type");
String str25 = map.get("title");
String str26 = map.get("subtitle");
String str27 = map.get("stage_instance_topic");
String str28 = map.get("guild_scheduled_event_entity_type");
GuildScheduledEventEntityType a2 = (str28 == null || (intOrNull = s.toIntOrNull(str28)) == null) ? null : GuildScheduledEventEntityType.Companion.a(intOrNull.intValue());
String str29 = map.get("notification_type");
}
private final Intent addTrackingData(Intent intent) {
@ -573,7 +585,7 @@ public final class NotificationData {
String str3 = this.guildName;
String str4 = this.guildIcon;
List<Sticker> A = message.A();
return new NotificationData(TYPE_MESSAGE_CREATE, o, b, g, intValue, i, a4, emptyList, i2, str, intOrNull, str2, b3, -1, j, str3, str4, -1, null, -1, null, null, A != null ? (Sticker) u.firstOrNull((List<? extends Object>) A) : null, null, null, null);
return new NotificationData(TYPE_MESSAGE_CREATE, o, b, g, intValue, i, a4, emptyList, i2, str, intOrNull, str2, b3, -1, j, str3, str4, -1, null, -1, null, null, A != null ? (Sticker) u.firstOrNull((List<? extends Object>) A) : null, null, null, null, null, null);
}
public final List<Long> getAckChannelIds() {
@ -866,6 +878,10 @@ public final class NotificationData {
if (!str.equals(TYPE_RELATIONSHIP_ADD)) {
return "";
}
NotificationType notificationType = this.notificationType;
if (notificationType != null && notificationType.ordinal() == 0) {
return this.type + this.notificationType;
}
return this.type + this.userId;
case -1263316859:
if (!str.equals(TYPE_STAGE_INSTANCE_CREATE)) {
@ -1140,7 +1156,10 @@ public final class NotificationData {
int ordinal = guildScheduledEventEntityType.ordinal();
return (ordinal == 1 || ordinal == 2 || ordinal == 3) ? b.h(context, R.string.guild_scheduled_event_stage_start_title, new Object[]{this.guildName}, null, 4) : "";
case -1327124998:
if (!str2.equals(TYPE_RELATIONSHIP_ADD) || (str = this.userUsername) == null) {
if (!str2.equals(TYPE_RELATIONSHIP_ADD)) {
return "";
}
if ((this.notificationType != NotificationType.Reminder || (str = this.title) == null) && (str = this.userUsername) == null) {
return "";
}
case -1263316859:

View File

@ -0,0 +1,41 @@
package com.discord.utilities.fcm;
import androidx.core.app.NotificationCompat;
import c0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: NotificationData.kt */
public enum NotificationType {
Reminder(NotificationCompat.CATEGORY_REMINDER);
public static final Companion Companion = new Companion(null);
private final String value;
/* compiled from: NotificationData.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final NotificationType parse(String str) {
NotificationType[] values = NotificationType.values();
for (int i = 0; i < 1; i++) {
NotificationType notificationType = values[i];
if (m.areEqual(notificationType.getValue(), str)) {
return notificationType;
}
}
return null;
}
}
private NotificationType(String str) {
this.value = str;
}
public final String getValue() {
return this.value;
}
}

View File

@ -63,6 +63,6 @@ public final class GuildUtilsKt {
public static final int getMaxVoiceBitrateKbps(com.discord.models.guild.Guild guild, Channel channel) {
m.checkNotNullParameter(guild, "guild");
return (channel == null || !ChannelUtils.x(channel)) ? getMaxVoiceBitrateKbps(guild.getPremiumTier(), guild.getFeatures().contains(GuildFeature.VIP_REGIONS)) : Bitrate.DEFAULT.getKbps();
return (channel == null || !ChannelUtils.y(channel)) ? getMaxVoiceBitrateKbps(guild.getPremiumTier(), guild.getFeatures().contains(GuildFeature.VIP_REGIONS)) : Bitrate.DEFAULT.getKbps();
}
}

View File

@ -164,10 +164,10 @@ public final class GuildScheduledEventUtilities {
if (!PermissionUtils.can(8589935616L, l)) {
return false;
}
if (ChannelUtils.x(channel)) {
if (ChannelUtils.y(channel)) {
return PermissionUtils.can(Permission.START_STAGE_EVENT, l);
}
if (ChannelUtils.C(channel)) {
if (ChannelUtils.D(channel)) {
return PermissionUtils.can(Permission.START_VOICE_EVENT, l);
}
return false;

View File

@ -0,0 +1,32 @@
package com.discord.utilities.intent;
import androidx.fragment.app.FragmentActivity;
import c0.z.d.m;
import c0.z.d.o;
import com.discord.stores.StoreStream;
import com.discord.widgets.settings.profile.WidgetSettingsUserProfile;
import com.discord.widgets.tabs.NavigationTab;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: RouteHandlers.kt */
public final class RouteHandlers$selectFeature$settingMap$11 extends o implements Function1<FragmentActivity, Unit> {
public static final RouteHandlers$selectFeature$settingMap$11 INSTANCE = new RouteHandlers$selectFeature$settingMap$11();
public RouteHandlers$selectFeature$settingMap$11() {
super(1);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(FragmentActivity fragmentActivity) {
invoke(fragmentActivity);
return Unit.a;
}
public final void invoke(FragmentActivity fragmentActivity) {
m.checkNotNullParameter(fragmentActivity, "ctx");
StoreStream.Companion.getTabsNavigation().selectTab(NavigationTab.SETTINGS, true);
WidgetSettingsUserProfile.Companion.launch$default(WidgetSettingsUserProfile.Companion, fragmentActivity, null, 2, null);
}
}

View File

@ -37,7 +37,7 @@ public final class RouteHandlers$voiceConnect$1 extends o implements Function1<C
if (context != null) {
m.checkNotNullExpressionValue(context, "weakContext.get() ?: return@appSubscribe");
m.checkNotNullExpressionValue(channel, "channel");
if (!ChannelUtils.v(channel)) {
if (!ChannelUtils.w(channel)) {
StoreStream.Companion.getVoiceChannelSelected().selectVoiceChannel(this.$channelId);
WidgetCallFullscreen.Companion.launch$default(WidgetCallFullscreen.Companion, context, this.$channelId, this.$isServicePermissionDeniedRedirect, null, null, 24, null);
}

View File

@ -346,7 +346,7 @@ public final class RouteHandlers {
if (matchResult == null || (groupValues = matchResult.getGroupValues()) == null || (str = (String) u.getOrNull(groupValues, 1)) == null) {
str = "";
}
Map mapOf = h0.mapOf(o.to("/account", RouteHandlers$selectFeature$settingMap$1.INSTANCE), o.to("/nitro", RouteHandlers$selectFeature$settingMap$2.INSTANCE), o.to("/voice", RouteHandlers$selectFeature$settingMap$3.INSTANCE), o.to("/createServer", RouteHandlers$selectFeature$settingMap$4.INSTANCE), o.to("/quickSwitcher", RouteHandlers$selectFeature$settingMap$5.INSTANCE), o.to("/friends", RouteHandlers$selectFeature$settingMap$6.INSTANCE), o.to("/mentions", RouteHandlers$selectFeature$settingMap$7.INSTANCE), o.to("/settings", RouteHandlers$selectFeature$settingMap$8.INSTANCE), o.to("/contactSync", RouteHandlers$selectFeature$settingMap$9.INSTANCE), o.to("/addFriends", RouteHandlers$selectFeature$settingMap$10.INSTANCE));
Map mapOf = h0.mapOf(o.to("/account", RouteHandlers$selectFeature$settingMap$1.INSTANCE), o.to("/nitro", RouteHandlers$selectFeature$settingMap$2.INSTANCE), o.to("/voice", RouteHandlers$selectFeature$settingMap$3.INSTANCE), o.to("/createServer", RouteHandlers$selectFeature$settingMap$4.INSTANCE), o.to("/quickSwitcher", RouteHandlers$selectFeature$settingMap$5.INSTANCE), o.to("/friends", RouteHandlers$selectFeature$settingMap$6.INSTANCE), o.to("/mentions", RouteHandlers$selectFeature$settingMap$7.INSTANCE), o.to("/settings", RouteHandlers$selectFeature$settingMap$8.INSTANCE), o.to("/contactSync", RouteHandlers$selectFeature$settingMap$9.INSTANCE), o.to("/addFriends", RouteHandlers$selectFeature$settingMap$10.INSTANCE), o.to("/editProfile", RouteHandlers$selectFeature$settingMap$11.INSTANCE));
StoreStream.Companion.getNavigation().launchNotice(a.u("ROUTING:", str), new RouteHandlers$selectFeature$1(mapOf, str));
return mapOf.containsKey(str) ? new AnalyticsMetadata(str, null, null, 6, null) : AnalyticsMetadata.Companion.getUNKNOWN();
}

View File

@ -144,7 +144,7 @@ public final class PermissionUtils {
public static final boolean canEveryone(long j, Channel channel, Channel channel2, Map<Long, GuildRole> map) {
m.checkNotNullParameter(channel, "channel");
m.checkNotNullParameter(map, "roles");
if (!ChannelUtils.A(channel)) {
if (!ChannelUtils.B(channel)) {
GuildRole guildRole = (GuildRole) a.s0(channel, map);
if (!(guildRole == null || (guildRole.h() & j) == j)) {
return false;
@ -159,7 +159,7 @@ public final class PermissionUtils {
}
}
return true;
} else if (channel2 == null || ChannelUtils.w(channel)) {
} else if (channel2 == null || ChannelUtils.x(channel)) {
return false;
} else {
return canEveryone(j, channel2, null, map);
@ -190,7 +190,7 @@ public final class PermissionUtils {
long j3;
long j4;
m.checkNotNullParameter(channel, "channel");
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
j3 = channel2 == null ? 0 : computeThreadPermissions(j, channel, channel2, j2, guildMember, map, z2);
} else {
long f = channel.f();
@ -199,6 +199,9 @@ public final class PermissionUtils {
s = n.emptyList();
}
j3 = computeNonThreadPermissions(j, f, j2, guildMember, map, s);
if (channel.A() == 15) {
j3 &= -2049;
}
}
if (!GuildMemberUtilsKt.isLurker(guildMember)) {
return j3;
@ -206,7 +209,7 @@ public final class PermissionUtils {
Map<Long, StageInstance> emptyMap = map2 != null ? map2 : h0.emptyMap();
m.checkNotNullParameter(channel, "$this$computeLurkerPermissionsAllowList");
m.checkNotNullParameter(emptyMap, "stageInstances");
if (ChannelUtils.x(channel)) {
if (ChannelUtils.y(channel)) {
StageInstance stageInstance = (StageInstance) a.c(channel, emptyMap);
if ((stageInstance != null ? stageInstance.e() : null) == StageInstancePrivacyLevel.PUBLIC) {
j4 = Permission.AllowList.LURKER_STAGE_CHANNEL;
@ -227,12 +230,12 @@ public final class PermissionUtils {
}
long computeNonThreadPermissions = computeNonThreadPermissions(j, f, j2, guildMember, map, s);
if (NewThreadsPermissionsFeatureFlag.Companion.getINSTANCE().isEnabled(channel.f())) {
if (ChannelUtils.w(channel) && !z2) {
if (ChannelUtils.x(channel) && !z2) {
can(Permission.MANAGE_THREADS, Long.valueOf(computeNonThreadPermissions));
}
return can(Permission.SEND_MESSAGES_IN_THREADS, Long.valueOf(computeNonThreadPermissions)) ? computeNonThreadPermissions | Permission.SEND_MESSAGES : -2049 & computeNonThreadPermissions;
}
if (ChannelUtils.w(channel)) {
if (ChannelUtils.x(channel)) {
if (can(Permission.CREATE_PRIVATE_THREADS, Long.valueOf(computeNonThreadPermissions))) {
computeNonThreadPermissions |= Permission.SEND_MESSAGES;
}
@ -295,15 +298,15 @@ public final class PermissionUtils {
public final boolean hasAccess(Channel channel, Long l) {
m.checkNotNullParameter(channel, "channel");
if (ChannelUtils.v(channel)) {
if (ChannelUtils.w(channel)) {
return true;
}
return can((ChannelUtils.q(channel) || ChannelUtils.k(channel)) ? Permission.VIEW_CHANNEL : Permission.CONNECT, l);
return can((ChannelUtils.r(channel) || ChannelUtils.k(channel)) ? Permission.VIEW_CHANNEL : Permission.CONNECT, l);
}
public final boolean hasAccessWrite(Channel channel, Long l) {
m.checkNotNullParameter(channel, "channel");
return ChannelUtils.v(channel) || can(3072, l);
return ChannelUtils.w(channel) || can(3072, l);
}
public final boolean hasBypassSlowmodePermissions(Long l, StoreSlowMode.Type type) {

View File

@ -28,7 +28,7 @@ public final class VideoPermissionsManager {
if (l != null && h == l.longValue()) {
return false;
}
if (ChannelUtils.v(channel)) {
if (ChannelUtils.w(channel)) {
return true;
}
return this.permissionsManager.can(512, l2);

View File

@ -70,7 +70,7 @@ public final class ActivityUtilsKt {
StoreStream.Companion companion = StoreStream.Companion;
long selectedVoiceChannelId = companion.getVoiceChannelSelected().getSelectedVoiceChannelId();
Channel channel = companion.getChannels().getChannel(selectedVoiceChannelId);
if (channel == null || !ChannelUtils.x(channel)) {
if (channel == null || !ChannelUtils.y(channel)) {
return null;
}
Map<Long, StageRoles> channelRolesInternal = companion.getStageChannels().getChannelRolesInternal(selectedVoiceChannelId);

View File

@ -21,6 +21,6 @@ public final class RestAPI$addGroupRecipients$2<T, R> implements b<Channel, Obse
}
public final Observable<? extends Channel> call(Channel channel) {
return (channel == null || !ChannelUtils.u(channel)) ? RestAPI.access$get_api$p(this.this$0).convertDMToGroup(this.$channelId, ((User) u.first((List<? extends Object>) this.$recipients)).getId()) : new j(channel);
return (channel == null || !ChannelUtils.v(channel)) ? RestAPI.access$get_api$p(this.this$0).convertDMToGroup(this.$channelId, ((User) u.first((List<? extends Object>) this.$recipients)).getId()) : new j(channel);
}
}

View File

@ -88,7 +88,7 @@ public final class StageChannelUtils {
m.checkNotNullParameter(storeStageInstances, "stageInstanceStore");
m.checkNotNullParameter(storeUser, "userStore");
Channel channel = storeChannels.getChannel(j);
if (channel == null || !ChannelUtils.x(channel) || storeStageInstances.getStageInstanceForChannel(channel.h()) == null || (r9 = storeStageChannels.m26getMyRolesvisDeB4(channel.h())) == null || !StageRoles.m42isModeratorimpl(r9.m45unboximpl()) || (channelRoles = storeStageChannels.getChannelRoles(channel.h())) == null) {
if (channel == null || !ChannelUtils.y(channel) || storeStageInstances.getStageInstanceForChannel(channel.h()) == null || (r9 = storeStageChannels.m26getMyRolesvisDeB4(channel.h())) == null || !StageRoles.m42isModeratorimpl(r9.m45unboximpl()) || (channelRoles = storeStageChannels.getChannelRoles(channel.h())) == null) {
return false;
}
long id2 = storeUser.getMe().getId();

View File

@ -425,7 +425,7 @@ public final class StickerUtils {
if (m.areEqual(sticker.e(), Boolean.FALSE)) {
return StickerSendability.SENDABLE_WITH_PREMIUM_GUILD;
}
return m.areEqual(sticker.g(), channel != null ? Long.valueOf(channel.f()) : null) ? StickerSendability.SENDABLE : (channel == null || ChannelUtils.v(channel) || PermissionUtils.can(Permission.USE_EXTERNAL_STICKERS, l)) ? z2 ? StickerSendability.SENDABLE : StickerSendability.SENDABLE_WITH_PREMIUM : StickerSendability.NONSENDABLE;
return m.areEqual(sticker.g(), channel != null ? Long.valueOf(channel.f()) : null) ? StickerSendability.SENDABLE : (channel == null || ChannelUtils.w(channel) || PermissionUtils.can(Permission.USE_EXTERNAL_STICKERS, l)) ? z2 ? StickerSendability.SENDABLE : StickerSendability.SENDABLE_WITH_PREMIUM : StickerSendability.NONSENDABLE;
}
public final List<Sticker> getStickersForAutocomplete(StoreUser storeUser, StoreGuilds storeGuilds, StoreStickers storeStickers, StoreGuildSelected storeGuildSelected, StoreGuildStickers storeGuildStickers) {

View File

@ -9,7 +9,7 @@ public final class SurveyUtils$getSurveyToShow$1<T, R> implements b<UserSurvey,
public final SurveyUtils.Survey call(UserSurvey userSurvey) {
if (userSurvey != null) {
return new SurveyUtils.Survey(userSurvey.d(), userSurvey.f(), userSurvey.d(), userSurvey.e(), userSurvey.a());
return new SurveyUtils.Survey(userSurvey.e(), userSurvey.g(), userSurvey.e(), userSurvey.f(), userSurvey.a());
}
return null;
}

View File

@ -163,7 +163,7 @@ public final class ThreadUtils {
if (!NewThreadsPermissionsFeatureFlag.Companion.getINSTANCE().isEnabled(guild.getId())) {
can = hasAccessWrite && can;
}
return isThreadsEnabled(guild.getId()) && can && (ChannelUtils.A(channel) ^ true) && (!z2 || guild.hasFeature(GuildFeature.PRIVATE_THREADS)) && !ChannelUtils.i(channel);
return isThreadsEnabled(guild.getId()) && can && (ChannelUtils.B(channel) ^ true) && (!z2 || guild.hasFeature(GuildFeature.PRIVATE_THREADS)) && !ChannelUtils.i(channel);
}
public final boolean canCreatePublicThread(Long l, Channel channel, Message message, Guild guild) {
@ -173,7 +173,7 @@ public final class ThreadUtils {
boolean hasAccessWrite = PermissionUtils.INSTANCE.hasAccessWrite(channel, l);
boolean can = PermissionUtils.can(Permission.CREATE_PUBLIC_THREADS, l);
boolean z2 = message == null || PermissionUtils.can(Permission.READ_MESSAGE_HISTORY, l);
return isThreadsEnabled(guild.getId()) && (!NewThreadsPermissionsFeatureFlag.Companion.getINSTANCE().isEnabled(guild.getId()) ? !(!hasAccessWrite || !can || !z2) : !(!can || !z2)) && ((message == null || !message.isSystemMessage()) && !ChannelUtils.A(channel) && (message == null || !message.hasThread()));
return isThreadsEnabled(guild.getId()) && (!NewThreadsPermissionsFeatureFlag.Companion.getINSTANCE().isEnabled(guild.getId()) ? !(!hasAccessWrite || !can || !z2) : !(!can || !z2)) && ((message == null || !message.isSystemMessage()) && !ChannelUtils.B(channel) && (message == null || !message.hasThread()));
}
public final boolean canCreateThread(Long l, Channel channel, Message message, Guild guild) {
@ -273,6 +273,6 @@ public final class ThreadUtils {
return h0.emptyMap();
}
Map<Long, Collection<Channel>> sortThreadsByJoinedDate = sortThreadsByJoinedDate(map);
return (channel == null || !ChannelUtils.A(channel)) ? sortThreadsByJoinedDate : prependSelectedThread(sortThreadsByJoinedDate, channel);
return (channel == null || !ChannelUtils.B(channel)) ? sortThreadsByJoinedDate : prependSelectedThread(sortThreadsByJoinedDate, channel);
}
}

View File

@ -43,7 +43,7 @@ public final class VoiceChannelJoinabilityUtils {
m.checkNotNullParameter(collection, "channelVoiceStates");
m.checkNotNullParameter(guildMaxVideoChannelUsers, "guildMaxVideoChannelUsers");
m.checkNotNullParameter(guildVerificationLevel, "verificationLevelTriggered");
if (ChannelUtils.v(channel)) {
if (ChannelUtils.w(channel)) {
return VoiceChannelJoinability.CAN_JOIN;
}
long h = channel.h();

View File

@ -92,7 +92,7 @@ public final class AuthInviteInfoView extends RelativeLayout {
return b.h(context, R.string.instant_invite_you_have_been_invited_to_chat_with, new Object[0], null, 4);
}
Channel channel = modelInvite.getChannel();
if (channel != null && ChannelUtils.u(channel)) {
if (channel != null && ChannelUtils.v(channel)) {
Channel channel2 = modelInvite.getChannel();
if (channel2 != null) {
}

View File

@ -253,7 +253,7 @@ public final class WidgetChannelSelector extends AppBottomSheet {
@Override // com.discord.widgets.channels.WidgetChannelSelector.FilterFunction
public boolean includeChannel(Channel channel) {
m.checkNotNullParameter(channel, "channel");
return ChannelUtils.x(channel) && StoreStream.Companion.getStageInstances().getStageInstanceForChannel(channel.h()) == null;
return ChannelUtils.y(channel) && StoreStream.Companion.getStageInstances().getStageInstanceForChannel(channel.h()) == null;
}
}
@ -498,7 +498,7 @@ public final class WidgetChannelSelector extends AppBottomSheet {
@Override // com.discord.widgets.channels.WidgetChannelSelector.FilterFunction
public boolean includeChannel(Channel channel) {
m.checkNotNullParameter(channel, "channel");
return ChannelUtils.r(channel);
return ChannelUtils.s(channel);
}
}

View File

@ -483,7 +483,7 @@ public final class WidgetChannelSidebarActionsViewModel extends AppViewModel<Vie
} else if (storeState instanceof StoreState.ChannelFound) {
StoreState.ChannelFound channelFound = (StoreState.ChannelFound) storeState;
boolean z3 = false;
if (ChannelUtils.v(channelFound.getChannel())) {
if (ChannelUtils.w(channelFound.getChannel())) {
ModelNotificationSettings guildNotificationSettings = channelFound.getGuildNotificationSettings();
long h = channelFound.getChannel().h();
if (!(guildNotificationSettings == null || (channelOverrides = guildNotificationSettings.getChannelOverrides()) == null)) {
@ -518,7 +518,7 @@ public final class WidgetChannelSidebarActionsViewModel extends AppViewModel<Vie
long h2 = channelFound.getChannel().h();
long f = channelFound.getChannel().f();
ModelNotificationSettings guildNotificationSettings2 = channelFound.getGuildNotificationSettings();
updateViewState(new ViewState.Guild(h2, f, (guildNotificationSettings2 == null || (channelOverride = guildNotificationSettings2.getChannelOverride(h2)) == null || !channelOverride.isMuted()) ? false : true, false, channelFound.getDisablePins(), ChannelUtils.A(channelFound.getChannel()), ChannelUtils.o(channelFound.getChannel())));
updateViewState(new ViewState.Guild(h2, f, (guildNotificationSettings2 == null || (channelOverride = guildNotificationSettings2.getChannelOverride(h2)) == null || !channelOverride.isMuted()) ? false : true, false, channelFound.getDisablePins(), ChannelUtils.B(channelFound.getChannel()), ChannelUtils.o(channelFound.getChannel())));
} else {
throw new NoWhenBranchMatchedException();
}

View File

@ -30,7 +30,7 @@ public final class WidgetChannelTopicViewModel$Companion$observeStoreState$1<T,
if (channel == null) {
return new j(new WidgetChannelTopicViewModel.StoreState.NoChannel(this.$navState.isRightPanelOpened(), this.$navState.isOnHomeTab()));
}
if (ChannelUtils.v(channel)) {
if (ChannelUtils.w(channel)) {
return WidgetChannelTopicViewModel.Companion.access$mapChannelToPrivateStoreState(WidgetChannelTopicViewModel.Companion, channel, this.$navState, this.$storeGuilds, this.$storeUserSettings);
}
if (channel.z() != null) {

View File

@ -89,7 +89,7 @@ public final class WidgetGroupInviteFriends$setupFAB$2 implements View.OnClickLi
}
if (m.areEqual(component2, l)) {
Channel channel2 = this.this$0.$data.getChannel();
if (channel2 == null || !ChannelUtils.u(channel2)) {
if (channel2 == null || !ChannelUtils.v(channel2)) {
companion.getVoiceChannelSelected().clear();
StoreCalls calls = companion.getCalls();
WidgetGroupInviteFriends widgetGroupInviteFriends = this.this$0.this$0;

View File

@ -193,11 +193,11 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo
PermissionOverwrite permissionOverwrite = (PermissionOverwrite) obj;
if (permissionOverwrite != null && PermissionOverwriteUtilsKt.denies(permissionOverwrite, Permission.VIEW_CHANNEL)) {
z3 = true;
return new WidgetChannelListModel.Companion.TextLikeChannelData(z5, intValue, contains, z3, !ChannelUtils.A(channel) ? new AnonymousClass1(this, channel, bool).mo17invoke() : new AnonymousClass2(this, intValue, channel, z5, z2, contains, h).mo17invoke());
return new WidgetChannelListModel.Companion.TextLikeChannelData(z5, intValue, contains, z3, !ChannelUtils.B(channel) ? new AnonymousClass1(this, channel, bool).mo17invoke() : new AnonymousClass2(this, intValue, channel, z5, z2, contains, h).mo17invoke());
}
}
z3 = false;
return new WidgetChannelListModel.Companion.TextLikeChannelData(z5, intValue, contains, z3, !ChannelUtils.A(channel) ? new AnonymousClass1(this, channel, bool).mo17invoke() : new AnonymousClass2(this, intValue, channel, z5, z2, contains, h).mo17invoke());
return new WidgetChannelListModel.Companion.TextLikeChannelData(z5, intValue, contains, z3, !ChannelUtils.B(channel) ? new AnonymousClass1(this, channel, bool).mo17invoke() : new AnonymousClass2(this, intValue, channel, z5, z2, contains, h).mo17invoke());
}
/* Return type fixed from 'java.lang.Object' to match base method */

View File

@ -492,7 +492,7 @@ public final class WidgetChannelListModel {
*/
private final java.util.List<com.discord.widgets.channels.list.items.ChannelListItem> guildListBuilder(long r152, com.discord.utilities.channel.GuildChannelsInfo r154, java.util.Map<java.lang.Long, com.discord.api.channel.Channel> r155, java.util.Map<java.lang.Long, ? extends java.util.Map<java.lang.Long, com.discord.stores.StoreThreadsActiveJoined.ActiveJoinedThread>> r156, java.util.Map<java.lang.Long, com.discord.stores.StoreThreadsJoined.JoinedThread> r157, java.util.Set<java.lang.Long> r158, com.discord.api.channel.Channel r159, long r160, java.util.Map<java.lang.Long, ? extends java.util.Collection<com.discord.widgets.channels.list.items.ChannelListItemVoiceUser>> r162, java.util.Map<java.lang.Long, java.lang.Integer> r163, java.util.Set<java.lang.Long> r164, java.util.Set<java.lang.Long> r165, java.util.Map<java.lang.Long, com.discord.widgets.stage.model.StageChannel> r166, java.util.Map<java.lang.Long, com.discord.api.stageinstance.StageInstance> r167, java.util.List<com.discord.api.guildscheduledevent.GuildScheduledEvent> r168, boolean r169) {
/*
// Method dump skipped, instructions count: 1276
// Method dump skipped, instructions count: 1284
*/
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):java.util.List");
}

View File

@ -34,7 +34,7 @@ public final class WidgetChannelsList$onViewBound$2 extends o implements Functio
if (A == 2) {
WidgetVoiceChannelSettings.Companion.launch(channel.h(), this.this$0.requireContext());
return;
} else if (!(A == 3 || A == 4 || A == 5)) {
} else if (!(A == 3 || A == 4 || A == 5 || A == 15)) {
switch (A) {
case 10:
case 11:

View File

@ -35,6 +35,6 @@ public final class WidgetChannelsList$onViewBound$6 extends o implements Functio
Long valueOf = Long.valueOf(channel.h());
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
WidgetUserSheet.Companion.show$default(companion, id2, valueOf, parentFragmentManager, Long.valueOf(channel.f()), Boolean.valueOf(ChannelUtils.C(channel)), null, null, 96, null);
WidgetUserSheet.Companion.show$default(companion, id2, valueOf, parentFragmentManager, Long.valueOf(channel.f()), Boolean.valueOf(ChannelUtils.D(channel)), null, null, 96, null);
}
}

View File

@ -122,7 +122,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
int i;
m.checkNotNullParameter(view, "$this$setBackground");
m.checkNotNullParameter(channel, "channel");
if (!z2 || ChannelUtils.r(channel)) {
if (!z2 || ChannelUtils.s(channel)) {
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "context");
i = DrawableCompat.getThemedDrawableRes$default(context, (int) R.attr.drawable_overlay_channels, 0, 2, (Object) null);
@ -335,8 +335,8 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
m.checkNotNullParameter(channelListItem, "data");
super.onConfigure(i, (int) channelListItem);
ChannelListItemDirectory channelListItemDirectory = (ChannelListItemDirectory) channelListItem;
boolean s = ChannelUtils.s(channelListItemDirectory.getChannel());
if (s) {
boolean t = ChannelUtils.t(channelListItemDirectory.getChannel());
if (t) {
TextView textView = this.binding.f2160c;
m.checkNotNullExpressionValue(textView, "binding.directoryChannelName");
String m = channelListItemDirectory.getChannel().m();
@ -347,7 +347,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
} else {
this.binding.f2160c.setText(R.string.hub_sidebar_join_servers);
}
this.binding.b.setImageResource(s ? R.drawable.ic_hub_24dp : R.drawable.ic_compass);
this.binding.b.setImageResource(t ? R.drawable.ic_hub_24dp : R.drawable.ic_compass);
LinearLayout linearLayout = this.binding.a;
linearLayout.setOnClickListener(new WidgetChannelsListAdapter$ItemChannelDirectory$onConfigure$$inlined$apply$lambda$1(this, channelListItemDirectory));
linearLayout.setSelected(channelListItemDirectory.getSelected());
@ -498,7 +498,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
this.binding.f.setTextColor(getTextColor(channelListItemPrivate));
TextView textView3 = this.binding.g;
m.checkNotNullExpressionValue(textView3, "binding.channelsListItemPrivateTag");
textView3.setVisibility(ChannelUtils.y(component1) ? 0 : 8);
textView3.setVisibility(ChannelUtils.z(component1) ? 0 : 8);
SimpleDraweeView simpleDraweeView = this.binding.f2157c;
m.checkNotNullExpressionValue(simpleDraweeView, "it");
IconUtils.setIcon$default(simpleDraweeView, component1, (int) R.dimen.avatar_size_standard, (MGImages.ChangeDetector) null, 8, (Object) null);
@ -507,13 +507,13 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
statusView.setVisibility(ChannelUtils.n(component1, component2) ? 0 : 8);
this.binding.b.setPresence(component2);
this.binding.b.setBackgroundColor(getPresenceBg(component3));
if (ChannelUtils.y(component1)) {
if (ChannelUtils.z(component1)) {
SimpleDraweeSpanTextView simpleDraweeSpanTextView = this.binding.d;
m.checkNotNullExpressionValue(simpleDraweeSpanTextView, "binding.channelsListItemPrivateDesc");
SimpleDraweeSpanTextView simpleDraweeSpanTextView2 = this.binding.d;
m.checkNotNullExpressionValue(simpleDraweeSpanTextView2, "binding.channelsListItemPrivateDesc");
ViewExtensions.setTextAndVisibilityBy(simpleDraweeSpanTextView, b.j(simpleDraweeSpanTextView2, R.string.system_dm_activity_text, new Object[0], null, 4));
} else if (ChannelUtils.u(component1)) {
} else if (ChannelUtils.v(component1)) {
SimpleDraweeSpanTextView simpleDraweeSpanTextView3 = this.binding.d;
m.checkNotNullExpressionValue(simpleDraweeSpanTextView3, "binding.channelsListItemPrivateDesc");
SimpleDraweeSpanTextView simpleDraweeSpanTextView4 = this.binding.d;
@ -1388,7 +1388,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
ChannelListItemActiveEvent channelListItemActiveEvent = (ChannelListItemActiveEvent) item;
if (channelListItemActiveEvent != null) {
GuildScheduledEventLocationInfo locationInfo = channelListItemActiveEvent.getData().getLocationInfo();
if ((locationInfo instanceof GuildScheduledEventLocationInfo.ChannelLocation) && (channel = (channelLocation = (GuildScheduledEventLocationInfo.ChannelLocation) locationInfo).getChannel()) != null && ChannelUtils.r(channel)) {
if ((locationInfo instanceof GuildScheduledEventLocationInfo.ChannelLocation) && (channel = (channelLocation = (GuildScheduledEventLocationInfo.ChannelLocation) locationInfo).getChannel()) != null && ChannelUtils.s(channel)) {
this.$adapter.getOnCallChannel().invoke(channelLocation.getChannel());
} else if ((locationInfo instanceof GuildScheduledEventLocationInfo.ExternalLocation) && channelListItemActiveEvent.getData().getEventId() != null) {
WidgetGuildScheduledEventDetailsBottomSheet.Companion.show(WidgetChannelsListAdapter.access$getFragmentManager$p(this.$adapter), channelListItemActiveEvent.getData().getEventId().longValue());

View File

@ -33,13 +33,13 @@ public final class WidgetChannelsListItemChannelActions$configureUI$$inlined$app
public final void invoke(View view) {
m.checkNotNullParameter(view, "view");
if (ChannelUtils.u(this.$this_configureUI$inlined.getChannel())) {
if (ChannelUtils.v(this.$this_configureUI$inlined.getChannel())) {
WidgetChannelGroupDMSettings.Companion companion = WidgetChannelGroupDMSettings.Companion;
long h = this.$this_configureUI$inlined.getChannel().h();
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "view.context");
companion.create(h, context);
} else if (ChannelUtils.r(this.$this_configureUI$inlined.getChannel())) {
} else if (ChannelUtils.s(this.$this_configureUI$inlined.getChannel())) {
WidgetVoiceChannelSettings.Companion companion2 = WidgetVoiceChannelSettings.Companion;
long h2 = this.$this_configureUI$inlined.getChannel().h();
Context context2 = view.getContext();

View File

@ -96,7 +96,7 @@ public final class WidgetChannelsListItemChannelActions extends AppBottomSheet {
this.permissions = l;
this.isMuted = z2;
this.showStageNotificationSurfaces = z3;
this.canManageChannel = PermissionUtils.can(16, l) || ChannelUtils.u(channel);
this.canManageChannel = PermissionUtils.can(16, l) || ChannelUtils.v(channel);
this.canCreateInstantInvite = PermissionUtils.can(1, l);
}
@ -277,7 +277,7 @@ public final class WidgetChannelsListItemChannelActions extends AppBottomSheet {
textView3.setVisibility(model.getCanCreateInstantInvite() ? 0 : 8);
setOnClickAndDismissListener(textView3, new WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$2(textView3, this, model));
TextView textView4 = getBinding().k;
textView4.setVisibility(ChannelUtils.z(model.getChannel()) || ChannelUtils.k(model.getChannel()) ? 0 : 8);
textView4.setVisibility(ChannelUtils.A(model.getChannel()) || ChannelUtils.k(model.getChannel()) ? 0 : 8);
setOnClickAndDismissListener(textView4, new WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$3(textView4, this, model));
Context context = textView4.getContext();
m.checkNotNullExpressionValue(context, "context");
@ -286,17 +286,17 @@ public final class WidgetChannelsListItemChannelActions extends AppBottomSheet {
m.checkNotNullExpressionValue(context2, "context");
textView4.setText(model.getMuteChannelText(context2, model.getChannel()));
TextView textView5 = getBinding().l;
textView5.setVisibility(ThreadUtils.INSTANCE.isThreadsEnabled(model.getChannel().f()) && ChannelUtils.B(model.getChannel()) && !model.getChannel().o() ? 0 : 8);
textView5.setVisibility(ThreadUtils.INSTANCE.isThreadsEnabled(model.getChannel().f()) && ChannelUtils.C(model.getChannel()) && !model.getChannel().o() ? 0 : 8);
setOnClickAndDismissListener(textView5, new WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$4(textView5, this, model));
TextView textView6 = getBinding().f2153c;
textView6.setVisibility(model.getCanManageChannel() ? 0 : 8);
setOnClickAndDismissListener(textView6, new WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$5(this, model));
textView6.setText(getSettingsText(model.getChannel(), model.getCanManageChannel()));
TextView textView7 = getBinding().b;
textView7.setVisibility(ChannelUtils.q(model.getChannel()) || ChannelUtils.k(model.getChannel()) || (ChannelUtils.x(model.getChannel()) && model.getShowStageNotificationSurfaces()) ? 0 : 8);
textView7.setVisibility(ChannelUtils.r(model.getChannel()) || ChannelUtils.k(model.getChannel()) || (ChannelUtils.y(model.getChannel()) && model.getShowStageNotificationSurfaces()) ? 0 : 8);
textView7.setOnClickListener(new WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$6(model));
View view = getBinding().j;
if (!ChannelUtils.z(model.getChannel()) && !ChannelUtils.k(model.getChannel())) {
if (!ChannelUtils.A(model.getChannel()) && !ChannelUtils.k(model.getChannel())) {
z2 = false;
}
view.setVisibility(z2 ? 0 : 8);

View File

@ -86,7 +86,7 @@ public final class GuildMemberListItemGeneratorKt {
}
groupIndices = g0.toSortedMap(linkedHashMap);
} else {
if (ChannelUtils.A(channel)) {
if (ChannelUtils.B(channel)) {
deepCopy.add(0, new ChannelMembersListAdapter.Item.JoinLeaveThread(memberList.getListId(), z3));
LinkedHashMap linkedHashMap2 = new LinkedHashMap(g0.mapCapacity(groupIndices.size()));
Iterator<T> it2 = groupIndices.entrySet().iterator();

View File

@ -206,6 +206,6 @@ public final class WidgetChannelMembersListViewModel$Companion$observeStoreState
}
public final Observable<? extends WidgetChannelMembersListViewModel.StoreState> call(Channel channel) {
return channel == null ? this.$isPanelOpenObservable.E(AnonymousClass1.INSTANCE) : ChannelUtils.v(channel) ? Observable.j(this.$privateChannelMemberListService.observeStateForGroupDm(channel), this.$isPanelOpenObservable, new AnonymousClass2(this)) : ChannelUtils.A(channel) ? this.$storeChannels.observeChannel(channel.r()).X(new AnonymousClass3(this, channel)) : Observable.g(this.$storeGuilds.observeGuild(channel.f()), this.$storeGuilds.observeRoles(channel.f()), this.$storePermissions.observePermissionsForChannel(channel.h()), this.$storeChannelMembers.observeChannelMemberList(channel.f(), channel.h()), this.$isPanelOpenObservable, new AnonymousClass4(channel));
return channel == null ? this.$isPanelOpenObservable.E(AnonymousClass1.INSTANCE) : ChannelUtils.w(channel) ? Observable.j(this.$privateChannelMemberListService.observeStateForGroupDm(channel), this.$isPanelOpenObservable, new AnonymousClass2(this)) : ChannelUtils.B(channel) ? this.$storeChannels.observeChannel(channel.r()).X(new AnonymousClass3(this, channel)) : Observable.g(this.$storeGuilds.observeGuild(channel.f()), this.$storeGuilds.observeRoles(channel.f()), this.$storePermissions.observePermissionsForChannel(channel.h()), this.$storeChannelMembers.observeChannelMemberList(channel.f(), channel.h()), this.$isPanelOpenObservable, new AnonymousClass4(channel));
}
}

View File

@ -1062,7 +1062,7 @@ public final class WidgetChannelMembersListViewModel extends AppViewModel<ViewSt
m.checkNotNullParameter(storeState, "storeState");
boolean z2 = (m.areEqual(viewState != null ? viewState.getListId() : null, loaded.getListId()) ^ true) && storeState.isPanelOpen();
Channel channel = loaded.getChannel();
if (channel == null || !ChannelUtils.A(channel)) {
if (channel == null || !ChannelUtils.B(channel)) {
if (z2) {
this.eventSubject.j.onNext(Event.ScrollToTop.INSTANCE);
updateSubscriptionsForChannel(new IntRange(0, 99));

View File

@ -297,19 +297,19 @@ public final class WidgetChannelSettingsEditPermissions extends AppFragment {
textView5.setText(ChannelUtils.d(widgetChannelSettingsEditPermissionsModel.getChannel(), requireContext(), true));
LinearLayout linearLayout = getBinding().K;
m.checkNotNullExpressionValue(linearLayout, "binding.channelPermissionsTextContainer");
linearLayout.setVisibility(ChannelUtils.q(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel()) ? 0 : 8);
linearLayout.setVisibility(ChannelUtils.r(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel()) ? 0 : 8);
LinearLayout linearLayout2 = getBinding().L;
m.checkNotNullExpressionValue(linearLayout2, "binding.channelPermissionsVoiceContainer");
linearLayout2.setVisibility(ChannelUtils.r(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel()) ? 0 : 8);
linearLayout2.setVisibility(ChannelUtils.s(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel()) ? 0 : 8);
LinearLayout linearLayout3 = getBinding().I;
m.checkNotNullExpressionValue(linearLayout3, "binding.channelPermissionsStageContainer");
linearLayout3.setVisibility(ChannelUtils.x(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel()) ? 0 : 8);
linearLayout3.setVisibility(ChannelUtils.y(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel()) ? 0 : 8);
LinearLayout linearLayout4 = getBinding().G;
m.checkNotNullExpressionValue(linearLayout4, "binding.channelPermissionsEventsContainer");
linearLayout4.setVisibility(widgetChannelSettingsEditPermissionsModel.getHasEventFeature() && (ChannelUtils.r(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel())) ? 0 : 8);
linearLayout4.setVisibility(widgetChannelSettingsEditPermissionsModel.getHasEventFeature() && (ChannelUtils.s(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel())) ? 0 : 8);
TernaryCheckBox ternaryCheckBox = getBinding().g;
m.checkNotNullExpressionValue(ternaryCheckBox, "binding.channelPermissionGeneralManageWebhooks");
ternaryCheckBox.setVisibility(ChannelUtils.q(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel()) ? 0 : 8);
ternaryCheckBox.setVisibility(ChannelUtils.r(widgetChannelSettingsEditPermissionsModel.getChannel()) || ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel()) ? 0 : 8);
if (ChannelUtils.k(widgetChannelSettingsEditPermissionsModel.getChannel())) {
getBinding().N.setText(R.string.role_permissions_section_general_category);
}
@ -351,7 +351,7 @@ public final class WidgetChannelSettingsEditPermissions extends AppFragment {
ternaryCheckBox2.setVisibility(ChannelUtils.i(widgetChannelSettingsEditPermissionsModel.getChannel()) ^ true ? 0 : 8);
}
if (id2 == R.id.channel_permission_general_manage_threads) {
ternaryCheckBox2.setVisibility(ChannelUtils.r(widgetChannelSettingsEditPermissionsModel.getChannel()) ^ true ? 0 : 8);
ternaryCheckBox2.setVisibility(ChannelUtils.s(widgetChannelSettingsEditPermissionsModel.getChannel()) ^ true ? 0 : 8);
}
updateCheckboxLabels(ternaryCheckBox2, widgetChannelSettingsEditPermissionsModel.getChannel().A(), z3, categoryLabels.get(Integer.valueOf(id2)));
}
@ -424,7 +424,7 @@ public final class WidgetChannelSettingsEditPermissions extends AppFragment {
}
private final void setupPermissionEnabledState(TernaryCheckBox ternaryCheckBox, long j, WidgetChannelSettingsEditPermissionsModel widgetChannelSettingsEditPermissionsModel) {
if (ChannelUtils.x(widgetChannelSettingsEditPermissionsModel.getChannel()) && STAGE_DISABLED_PERMISSIONS.contains(Long.valueOf(j))) {
if (ChannelUtils.y(widgetChannelSettingsEditPermissionsModel.getChannel()) && STAGE_DISABLED_PERMISSIONS.contains(Long.valueOf(j))) {
ternaryCheckBox.setDisabled(R.string.stage_channel_cannot_overwrite_permission);
} else if (widgetChannelSettingsEditPermissionsModel instanceof WidgetChannelSettingsEditPermissionsModel.ModelForUser) {
WidgetChannelSettingsEditPermissionsModel.ModelForUser modelForUser = (WidgetChannelSettingsEditPermissionsModel.ModelForUser) widgetChannelSettingsEditPermissionsModel;

View File

@ -35,7 +35,7 @@ public final class WidgetChannelNotificationSettings$Model$Companion$get$1$$spec
if (guild == null) {
return null;
}
if (ChannelUtils.A(this.$channel$inlined)) {
if (ChannelUtils.B(this.$channel$inlined)) {
NotificationTextUtils notificationTextUtils = NotificationTextUtils.INSTANCE;
int computeThreadNotificationSetting = ThreadUtils.INSTANCE.computeThreadNotificationSetting(joinedThread, notificationTextUtils.isGuildOrCategoryOrChannelMuted(modelNotificationSettings, channel), notificationTextUtils.channelMessageNotificationLevel(modelNotificationSettings, channel, guild));
i = computeThreadNotificationSetting != 4 ? computeThreadNotificationSetting != 8 ? ModelNotificationSettings.FREQUENCY_ALL : ModelNotificationSettings.FREQUENCY_NOTHING : ModelNotificationSettings.FREQUENCY_MENTIONS;
@ -46,8 +46,8 @@ public final class WidgetChannelNotificationSettings$Model$Companion$get$1$$spec
i = channelNotificationSettingsUtils.computeNotificationSetting(guild, channel2, modelNotificationSettings);
}
ModelNotificationSettings.ChannelOverride channelOverride = modelNotificationSettings.getChannelOverride(this.$channel$inlined.h());
boolean z2 = !ChannelUtils.A(this.$channel$inlined) ? !(channelOverride == null || !channelOverride.isMuted()) : !(joinedThread == null || !joinedThread.getMuted());
if (ChannelUtils.A(this.$channel$inlined)) {
boolean z2 = !ChannelUtils.B(this.$channel$inlined) ? !(channelOverride == null || !channelOverride.isMuted()) : !(joinedThread == null || !joinedThread.getMuted());
if (ChannelUtils.B(this.$channel$inlined)) {
if (!(joinedThread == null || (muteConfig = joinedThread.getMuteConfig()) == null)) {
str2 = muteConfig.getEndTime();
}

View File

@ -282,15 +282,15 @@ public final class WidgetChannelNotificationSettings extends AppFragment {
private final void configureNotificationRadios(Model model) {
Ref$IntRef ref$IntRef = new Ref$IntRef();
ref$IntRef.element = model.getNotificationSetting();
if (ChannelUtils.x(model.getChannel()) && ref$IntRef.element == ModelNotificationSettings.FREQUENCY_ALL) {
if (ChannelUtils.y(model.getChannel()) && ref$IntRef.element == ModelNotificationSettings.FREQUENCY_ALL) {
ref$IntRef.element = ModelNotificationSettings.FREQUENCY_MENTIONS;
}
WidgetChannelNotificationSettings$configureNotificationRadios$1 widgetChannelNotificationSettings$configureNotificationRadios$1 = new WidgetChannelNotificationSettings$configureNotificationRadios$1(this, ref$IntRef);
CheckedSetting checkedSetting = getBinding().f2136c;
m.checkNotNullExpressionValue(checkedSetting, "binding.frequencyRadioAll");
checkedSetting.setVisibility(ChannelUtils.z(model.getChannel()) || ChannelUtils.k(model.getChannel()) ? 0 : 8);
checkedSetting.setVisibility(ChannelUtils.A(model.getChannel()) || ChannelUtils.k(model.getChannel()) ? 0 : 8);
CheckedSetting checkedSetting2 = getBinding().d;
String string = requireContext().getString(ChannelUtils.x(model.getChannel()) ? R.string.form_label_live_stages_only : R.string.form_label_only_mentions);
String string = requireContext().getString(ChannelUtils.y(model.getChannel()) ? R.string.form_label_live_stages_only : R.string.form_label_only_mentions);
m.checkNotNullExpressionValue(string, "requireContext().getStri…s\n }\n )");
checkedSetting2.setText(b.l(string, new Object[0], null, 2));
CheckedSetting checkedSetting3 = getBinding().f2136c;
@ -308,10 +308,10 @@ public final class WidgetChannelNotificationSettings extends AppFragment {
int i = 0;
setActionBarSubtitle(ChannelUtils.e(model.getChannel(), requireContext(), false, 2));
boolean z2 = true;
NotificationMuteSettingsView.ViewState viewState = new NotificationMuteSettingsView.ViewState(model.getChannelIsMuted(), model.getChannelMuteEndTime(), ChannelUtils.z(model.getChannel()) ? b.h(requireContext(), R.string.mute_channel, new Object[]{ChannelUtils.e(model.getChannel(), requireContext(), false, 2)}, null, 4) : b.h(requireContext(), R.string.mute_category, new Object[0], null, 4), ChannelUtils.z(model.getChannel()) ? b.h(requireContext(), R.string.unmute_channel, new Object[]{ChannelUtils.e(model.getChannel(), requireContext(), false, 2)}, null, 4) : b.h(requireContext(), R.string.unmute_category, new Object[0], null, 4), b.h(requireContext(), R.string.form_label_mobile_channel_muted, new Object[0], null, 4), ChannelUtils.z(model.getChannel()) ? R.string.form_label_mobile_channel_muted_until : R.string.form_label_mobile_category_muted_until, ChannelUtils.z(model.getChannel()) ? b.h(requireContext(), R.string.form_label_mobile_channel_override_mute, new Object[0], null, 4) : b.h(requireContext(), R.string.form_label_mobile_category_override_mute, new Object[0], null, 4));
NotificationMuteSettingsView.ViewState viewState = new NotificationMuteSettingsView.ViewState(model.getChannelIsMuted(), model.getChannelMuteEndTime(), ChannelUtils.A(model.getChannel()) ? b.h(requireContext(), R.string.mute_channel, new Object[]{ChannelUtils.e(model.getChannel(), requireContext(), false, 2)}, null, 4) : b.h(requireContext(), R.string.mute_category, new Object[0], null, 4), ChannelUtils.A(model.getChannel()) ? b.h(requireContext(), R.string.unmute_channel, new Object[]{ChannelUtils.e(model.getChannel(), requireContext(), false, 2)}, null, 4) : b.h(requireContext(), R.string.unmute_category, new Object[0], null, 4), b.h(requireContext(), R.string.form_label_mobile_channel_muted, new Object[0], null, 4), ChannelUtils.A(model.getChannel()) ? R.string.form_label_mobile_channel_muted_until : R.string.form_label_mobile_category_muted_until, ChannelUtils.A(model.getChannel()) ? b.h(requireContext(), R.string.form_label_mobile_channel_override_mute, new Object[0], null, 4) : b.h(requireContext(), R.string.form_label_mobile_category_override_mute, new Object[0], null, 4));
WidgetChannelNotificationSettings$configureUI$onMute$1 widgetChannelNotificationSettings$configureUI$onMute$1 = new WidgetChannelNotificationSettings$configureUI$onMute$1(this, model);
WidgetChannelNotificationSettings$configureUI$onUnmute$1 widgetChannelNotificationSettings$configureUI$onUnmute$1 = new WidgetChannelNotificationSettings$configureUI$onUnmute$1(this, model);
if (!ChannelUtils.z(model.getChannel()) && !ChannelUtils.k(model.getChannel())) {
if (!ChannelUtils.A(model.getChannel()) && !ChannelUtils.k(model.getChannel())) {
z2 = false;
}
NotificationMuteSettingsView notificationMuteSettingsView = getBinding().g;

View File

@ -48,7 +48,7 @@ public final class WidgetTextChannelSettings$Model$Companion$get$1<T, R> impleme
}
public final Observable<? extends WidgetTextChannelSettings.Model> call(Channel channel) {
if (channel == null || ChannelUtils.A(channel)) {
if (channel == null || ChannelUtils.B(channel)) {
return new j(null);
}
StoreStream.Companion companion = StoreStream.Companion;

View File

@ -397,9 +397,9 @@ public final class WidgetTextChannelSettings extends AppFragment {
}
CharSequence charSequence = null;
AppFragment.setActionBarDisplayHomeAsUpEnabled$default(this, false, 1, null);
setActionBarTitle(ChannelUtils.z(model.getChannel()) ? R.string.channel_settings : R.string.category_settings);
setActionBarTitle(ChannelUtils.A(model.getChannel()) ? R.string.channel_settings : R.string.category_settings);
setActionBarSubtitle(ChannelUtils.e(model.getChannel(), requireContext(), false, 2));
setActionBarOptionsMenu(ChannelUtils.z(model.getChannel()) ? R.menu.menu_text_channel_settings : R.menu.menu_category_settings, new WidgetTextChannelSettings$configureUI$1(this, model), new WidgetTextChannelSettings$configureUI$2(model));
setActionBarOptionsMenu(ChannelUtils.A(model.getChannel()) ? R.menu.menu_text_channel_settings : R.menu.menu_category_settings, new WidgetTextChannelSettings$configureUI$1(this, model), new WidgetTextChannelSettings$configureUI$2(model));
if (!this.hasFiredAnalytics && (threadTypeForGuild = AnalyticsTracker.PremiumGuildUpsellType.Companion.getThreadTypeForGuild(model.getGuild())) != null) {
AnalyticsTracker.INSTANCE.premiumGuildUpsellViewed(threadTypeForGuild, model.getGuild().getId(), Long.valueOf(model.getChannel().h()), new Traits.Location(Traits.Location.Page.CHANNEL_SETTINGS, null, null, null, null, 30, null));
this.hasFiredAnalytics = true;
@ -410,7 +410,7 @@ public final class WidgetTextChannelSettings extends AppFragment {
TextInputLayout textInputLayout2 = getBinding().f2462c;
m.checkNotNullExpressionValue(textInputLayout2, "binding.channelSettingsEditName");
ViewExtensions.setText(textInputLayout, (CharSequence) statefulViews.get(textInputLayout2.getId(), ChannelUtils.c(model.getChannel())));
getBinding().f2462c.setHint(ChannelUtils.z(model.getChannel()) ? R.string.form_label_channel_name : R.string.category_name);
getBinding().f2462c.setHint(ChannelUtils.A(model.getChannel()) ? R.string.form_label_channel_name : R.string.category_name);
TextInputLayout textInputLayout3 = getBinding().d;
m.checkNotNullExpressionValue(textInputLayout3, "binding.channelSettingsEditTopic");
StatefulViews statefulViews2 = this.state;
@ -425,7 +425,7 @@ public final class WidgetTextChannelSettings extends AppFragment {
TextInputLayout textInputLayout5 = getBinding().d;
m.checkNotNullExpressionValue(textInputLayout5, "binding.channelSettingsEditTopic");
int i = 8;
textInputLayout5.setVisibility(ChannelUtils.z(model.getChannel()) ? 0 : 8);
textInputLayout5.setVisibility(ChannelUtils.A(model.getChannel()) ? 0 : 8);
LinearLayout linearLayout = getBinding().e;
m.checkNotNullExpressionValue(linearLayout, "binding.channelSettingsEditWrap");
linearLayout.setVisibility(model.getCanManageChannel() ? 0 : 8);
@ -433,7 +433,7 @@ public final class WidgetTextChannelSettings extends AppFragment {
this.state.configureSaveActionView(getBinding().k);
LinearLayout linearLayout2 = getBinding().i;
m.checkNotNullExpressionValue(linearLayout2, "binding.channelSettingsPinnedMessagesContainer");
linearLayout2.setVisibility(ChannelUtils.z(model.getChannel()) ? 0 : 8);
linearLayout2.setVisibility(ChannelUtils.A(model.getChannel()) ? 0 : 8);
TextView textView = getBinding().h;
m.checkNotNullExpressionValue(textView, "binding.channelSettingsPinnedMessages");
textView.setEnabled(model.isPinsEnabled());
@ -448,9 +448,7 @@ public final class WidgetTextChannelSettings extends AppFragment {
getBinding().g.setOnClickListener(new WidgetTextChannelSettings$configureUI$7(model));
CheckedSetting checkedSetting = getBinding().b;
m.checkNotNullExpressionValue(checkedSetting, "binding.channelSettingsAnnouncement");
Channel channel = model.getChannel();
m.checkNotNullParameter(channel, "$this$isGuildTextChannel");
checkedSetting.setVisibility(((channel.A() == 0) || ChannelUtils.i(model.getChannel())) && model.getCanManageChannel() && model.isCommunityGuild() && !model.isPublicGuildRulesChannel() && !model.isPublicGuildUpdatesChannel() ? 0 : 8);
checkedSetting.setVisibility((ChannelUtils.q(model.getChannel()) || ChannelUtils.i(model.getChannel())) && model.getCanManageChannel() && model.isCommunityGuild() && !model.isPublicGuildRulesChannel() && !model.isPublicGuildUpdatesChannel() ? 0 : 8);
getBinding().b.g(ChannelUtils.i(model.getChannel()), false);
CheckedSetting checkedSetting2 = getBinding().b;
Context context = getContext();
@ -464,7 +462,7 @@ public final class WidgetTextChannelSettings extends AppFragment {
linearLayout3.setVisibility(model.getCanManageChannel() || model.getCanManagePermissions() ? 0 : 8);
LinearLayout linearLayout4 = getBinding().m;
m.checkNotNullExpressionValue(linearLayout4, "binding.channelSettingsSectionPrivacySafety");
linearLayout4.setVisibility(model.getCanManageChannel() && ChannelUtils.z(model.getChannel()) ? 0 : 8);
linearLayout4.setVisibility(model.getCanManageChannel() && ChannelUtils.A(model.getChannel()) ? 0 : 8);
CheckedSetting checkedSetting3 = getBinding().f;
m.checkNotNullExpressionValue(checkedSetting3, "binding.channelSettingsNsfw");
checkedSetting3.setVisibility(model.getCanManageChannel() ? 0 : 8);
@ -472,7 +470,7 @@ public final class WidgetTextChannelSettings extends AppFragment {
getBinding().f.e(new WidgetTextChannelSettings$configureUI$9(this, model));
LinearLayout linearLayout5 = getBinding().n;
m.checkNotNullExpressionValue(linearLayout5, "binding.channelSettingsSectionSlowMode");
linearLayout5.setVisibility(model.getCanManageChannel() && ChannelUtils.z(model.getChannel()) && !ChannelUtils.i(model.getChannel()) ? 0 : 8);
linearLayout5.setVisibility(model.getCanManageChannel() && ChannelUtils.A(model.getChannel()) && !ChannelUtils.i(model.getChannel()) ? 0 : 8);
int intValue = ((Number) this.state.get(R.id.channel_settings_slow_mode_cooldown_slider, Integer.valueOf(model.getChannel().u()))).intValue();
setSlowmodeLabel(intValue);
Iterator<Integer> it = SLOWMODE_COOLDOWN_VALUES.iterator();
@ -498,7 +496,7 @@ public final class WidgetTextChannelSettings extends AppFragment {
seekBar2.setContentDescription(textView3.getText());
LinearLayout linearLayout6 = getBinding().l;
m.checkNotNullExpressionValue(linearLayout6, "binding.channelSettingsS…efaultAutoArchiveDuration");
if (model.getCanManageChannel() && ChannelUtils.B(model.getChannel()) && ThreadUtils.INSTANCE.isThreadsEnabled(model.getGuild().getId())) {
if (model.getCanManageChannel() && ChannelUtils.C(model.getChannel()) && ThreadUtils.INSTANCE.isThreadsEnabled(model.getGuild().getId())) {
i = 0;
}
linearLayout6.setVisibility(i);
@ -559,7 +557,7 @@ public final class WidgetTextChannelSettings extends AppFragment {
m.checkNotNullExpressionValue(linearLayout, "binding.root");
AlertDialog create = new AlertDialog.Builder(linearLayout.getContext()).setView(a.a).create();
m.checkNotNullExpressionValue(create, "AlertDialog.Builder(bind…ew(binding.root).create()");
a.e.setText(ChannelUtils.z(channel) ? R.string.delete_channel : R.string.delete_category);
a.e.setText(ChannelUtils.A(channel) ? R.string.delete_channel : R.string.delete_category);
a.f131c.setOnClickListener(new WidgetTextChannelSettings$confirmDelete$1(create));
a.d.setOnClickListener(new WidgetTextChannelSettings$confirmDelete$2(this, channel));
TextView textView = a.b;

View File

@ -407,7 +407,7 @@ public final class WidgetThreadSettingsViewModel extends AppViewModel<ViewState>
private final void handleStoreState(StoreState storeState) {
Channel channel = storeState.getChannel();
String str = null;
if ((channel != null ? channel.m() : null) == null || !ChannelUtils.A(channel)) {
if ((channel != null ? channel.m() : null) == null || !ChannelUtils.B(channel)) {
updateViewState(ViewState.Invalid.INSTANCE);
return;
}

View File

@ -307,7 +307,7 @@ public final class AppFlexInputViewModel extends AppViewModel<FlexInputState> im
boolean z3 = (m.areEqual(leftPanelState, aVar) ^ true) || (m.areEqual(storeState.getRightPanelState(), aVar) ^ true);
boolean z4 = storeState.getNotice() != null && !storeState.getNotice().isInAppNotification() && !storeState.getNotice().isPopup();
boolean can = selectedChannel == null ? false : storeState.isThreadCreation() ? PermissionUtils.can(Permission.SEND_MESSAGES_IN_THREADS, channelPermission) : PermissionUtils.INSTANCE.hasAccessWrite(selectedChannel, channelPermission);
boolean z5 = selectedChannel != null && (ChannelUtils.v(selectedChannel) || PermissionUtils.can(Permission.ATTACH_FILES, channelPermission));
boolean z5 = selectedChannel != null && (ChannelUtils.w(selectedChannel) || PermissionUtils.can(Permission.ATTACH_FILES, channelPermission));
boolean z6 = requireViewState.g;
if (z4 || z3) {
hideKeyboard();

View File

@ -1821,7 +1821,7 @@ public final class ChatInputViewModel extends AppViewModel<ViewState> {
boolean isType = ModelUserRelationship.isType(loaded.getRelationshipType(), 2);
ThreadUtils threadUtils = ThreadUtils.INSTANCE;
boolean z2 = true;
boolean z3 = !isType && hasAccessWrite && !loaded.isLurking() && (threadUtils.canUnarchiveThread(loaded.getChannel(), loaded.getChannelPermissions()) || !ChannelUtils.A(loaded.getChannel()));
boolean z3 = !isType && hasAccessWrite && !loaded.isLurking() && (threadUtils.canUnarchiveThread(loaded.getChannel(), loaded.getChannelPermissions()) || !ChannelUtils.B(loaded.getChannel()));
boolean z4 = loaded.getChannel().A() == 5 && !z3;
PremiumUtils premiumUtils = PremiumUtils.INSTANCE;
int maxFileSizeMB = premiumUtils.getMaxFileSizeMB(loaded.getMe());
@ -1833,7 +1833,7 @@ public final class ChatInputViewModel extends AppViewModel<ViewState> {
boolean hasVerificationGate$default = MemberVerificationUtils.hasVerificationGate$default(MemberVerificationUtils.INSTANCE, loaded.getGuild(), null, 2, null);
GuildMember meGuildMember = loaded.getMeGuildMember();
boolean z6 = hasVerificationGate$default && ((meGuildMember != null ? meGuildMember.getPending() : false) || z5);
boolean z7 = !ChannelUtils.y(loaded.getChannel()) && !loaded.isLurking() && !z5 && !z4 && !z6;
boolean z7 = !ChannelUtils.z(loaded.getChannel()) && !loaded.isLurking() && !z5 && !z4 && !z6;
boolean z8 = z3 && loaded.getEditingMessage() != null && loaded.getEditingMessage().getMessage().getChannelId() == loaded.getChannel().h();
boolean z9 = replying instanceof ViewState.Loaded.PendingReplyState.Replying;
boolean canCreateThread = threadUtils.canCreateThread(loaded.getChannelPermissions(), loaded.getChannel(), null, loaded.getGuild());
@ -1843,17 +1843,17 @@ public final class ChatInputViewModel extends AppViewModel<ViewState> {
StoreChat.EditingMessage editingMessage = loaded.getEditingMessage();
GuildVerificationLevel verificationLevelTriggered = loaded.getVerificationLevelTriggered();
boolean isLurking = loaded.isLurking();
boolean y2 = ChannelUtils.y(loaded.getChannel());
boolean z10 = ChannelUtils.z(loaded.getChannel());
boolean isOnCooldown = loaded.isOnCooldown();
StoreChannelsSelected.ResolvedSelectedChannel.ThreadDraft selectedThreadDraft = loaded.getSelectedThreadDraft();
GuildJoinRequest guildJoinRequest = loaded.getGuildJoinRequest();
ViewState.Loaded loaded2 = new ViewState.Loaded(channel, h, me2, editingMessage, z3, verificationLevelTriggered, isLurking, y2, isOnCooldown, max, z4, replying, false, isType, z7, z5, z8, z9, selectedThreadDraft, z6, guildJoinRequest != null ? guildJoinRequest.a() : null, loaded.getThreadDraftState(), canCreateThread);
ViewState.Loaded loaded2 = new ViewState.Loaded(channel, h, me2, editingMessage, z3, verificationLevelTriggered, isLurking, z10, isOnCooldown, max, z4, replying, false, isType, z7, z5, z8, z9, selectedThreadDraft, z6, guildJoinRequest != null ? guildJoinRequest.a() : null, loaded.getThreadDraftState(), canCreateThread);
ViewState viewState = getViewState();
if (!(viewState instanceof ViewState.Loaded)) {
viewState = null;
}
ViewState.Loaded loaded3 = (ViewState.Loaded) viewState;
boolean z10 = !m.areEqual(loaded3 != null ? loaded3.getEditingMessage() : null, loaded2.getEditingMessage());
boolean z11 = !m.areEqual(loaded3 != null ? loaded3.getEditingMessage() : null, loaded2.getEditingMessage());
ViewState viewState2 = getViewState();
if (!(viewState2 instanceof ViewState.Loaded)) {
viewState2 = null;
@ -1863,7 +1863,7 @@ public final class ChatInputViewModel extends AppViewModel<ViewState> {
z2 = false;
}
updateViewState(loaded2);
if (z10) {
if (z11) {
StoreChat.EditingMessage editingMessage2 = loaded2.getEditingMessage();
if (editingMessage2 == null || (content = editingMessage2.getContent()) == null || (str = content.toString()) == null) {
str = "";

View File

@ -218,7 +218,7 @@ public final class AutocompleteModelUtils {
list2 = new ArrayList();
for (Object obj8 : plus) {
Autocompletable autocompletable2 = (Autocompletable) obj8;
if (autocompletable2 instanceof ChannelAutocompletable ? ChannelUtils.q(((ChannelAutocompletable) autocompletable2).getChannel()) : autocompletable2 instanceof UserAutocompletable ? ((UserAutocompletable) autocompletable2).getCanUserReadChannel() : !(autocompletable2 instanceof ApplicationCommandAutocompletable)) {
if (autocompletable2 instanceof ChannelAutocompletable ? ChannelUtils.r(((ChannelAutocompletable) autocompletable2).getChannel()) : autocompletable2 instanceof UserAutocompletable ? ((UserAutocompletable) autocompletable2).getCanUserReadChannel() : !(autocompletable2 instanceof ApplicationCommandAutocompletable)) {
list2.add(obj8);
}
}
@ -278,7 +278,7 @@ public final class AutocompleteModelUtils {
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
Autocompletable autocompletable = (Autocompletable) obj;
if (autocompletable instanceof ChannelAutocompletable ? ChannelUtils.q(((ChannelAutocompletable) autocompletable).getChannel()) : autocompletable instanceof UserAutocompletable ? ((UserAutocompletable) autocompletable).getCanUserReadChannel() : autocompletable instanceof RoleAutocompletable ? ((RoleAutocompletable) autocompletable).getCanMention() : true) {
if (autocompletable instanceof ChannelAutocompletable ? ChannelUtils.r(((ChannelAutocompletable) autocompletable).getChannel()) : autocompletable instanceof UserAutocompletable ? ((UserAutocompletable) autocompletable).getCanUserReadChannel() : autocompletable instanceof RoleAutocompletable ? ((RoleAutocompletable) autocompletable).getCanMention() : true) {
arrayList.add(obj);
}
}

View File

@ -110,7 +110,7 @@ public final class AutocompleteItemViewHolder extends RecyclerView.ViewHolder {
TextView textView = this.binding.e;
m.checkNotNullExpressionValue(textView, "binding.chatInputItemName");
textView.setText(channel.m());
int i = ChannelUtils.C(channel) ? R.drawable.ic_channel_voice : ChannelUtils.A(channel) ? R.drawable.ic_thread : ChannelUtils.q(channel) ? R.drawable.ic_channel_text : R.drawable.ic_guild_folder;
int i = ChannelUtils.D(channel) ? R.drawable.ic_channel_voice : ChannelUtils.B(channel) ? R.drawable.ic_thread : ChannelUtils.r(channel) ? R.drawable.ic_channel_text : R.drawable.ic_guild_folder;
SimpleDraweeView simpleDraweeView = this.binding.b;
m.checkNotNullExpressionValue(simpleDraweeView, "binding.chatInputItemAvatar");
int color = ColorCompat.getColor(simpleDraweeView, (int) R.color.primary_500);

View File

@ -31,7 +31,7 @@ public final class ChannelAutocompletableSource$observeChannelAutocompletables$1
m.checkNotNullExpressionValue(map2, "activeJoinedThreads");
m.checkNotNullExpressionValue(map, "guildChannels");
for (Channel channel : h0.plus(map2, map).values()) {
if (ChannelUtils.q(channel) || ChannelUtils.C(channel) || ChannelUtils.k(channel)) {
if (ChannelUtils.r(channel) || ChannelUtils.D(channel) || ChannelUtils.k(channel)) {
m.checkNotNullExpressionValue(map3, ModelAuditLogEntry.CHANGE_KEY_PERMISSIONS);
if (PermissionUtils.hasAccess(channel, map3)) {
treeSet.add(new ChannelAutocompletable(channel));

View File

@ -529,7 +529,7 @@ public final class WidgetEmojiAdapter extends WidgetExpressionPickerAdapter {
m.checkNotNullParameter(emojiCategory, "emojiCategory");
switch (emojiCategory.ordinal()) {
case 0:
return R.string.emoji_category_favorites;
return R.string.category_favorite;
case 1:
return R.string.emoji_category_recent;
case 2:

View File

@ -300,7 +300,7 @@ public class StickerPickerViewModel extends AppViewModel<ViewState> {
public final boolean canUseExternalStickersInCurrentChannel(long j) {
Channel channel = this.currentChannel;
if ((channel != null && ChannelUtils.v(channel)) || PermissionUtils.can(Permission.USE_EXTERNAL_STICKERS, Long.valueOf(this.currentChannelPermissions))) {
if ((channel != null && ChannelUtils.w(channel)) || PermissionUtils.can(Permission.USE_EXTERNAL_STICKERS, Long.valueOf(this.currentChannelPermissions))) {
return true;
}
Channel channel2 = this.currentChannel;

View File

@ -132,7 +132,7 @@ public final class WidgetChatListActions extends AppBottomSheet {
if (message == null) {
return null;
}
ManageMessageContext from = ManageMessageContext.Companion.from(message, l, meUser, guild != null ? Integer.valueOf(guild.getMfaLevel()) : null, channel != null && ChannelUtils.v(channel), channel != null && ChannelUtils.y(channel), (channel == null || (y2 = channel.y()) == null || !y2.b()) ? false : true);
ManageMessageContext from = ManageMessageContext.Companion.from(message, l, meUser, guild != null ? Integer.valueOf(guild.getMfaLevel()) : null, channel != null && ChannelUtils.w(channel), channel != null && ChannelUtils.z(channel), (channel == null || (y2 = channel.y()) == null || !y2.b()) ? false : true);
if (guildMember == null || (nick = guildMember.getNick()) == null) {
User author = message.getAuthor();
if (author != null) {
@ -541,7 +541,7 @@ public final class WidgetChatListActions extends AppBottomSheet {
textView13.setVisibility(!model.getManageMessageContext().getCanDelete() ? 0 : 8);
getBinding().e.setOnClickListener(new WidgetChatListActions$configureUI$12(this, model));
getBinding().j.setOnClickListener(new WidgetChatListActions$configureUI$13(this, model));
boolean z4 = model.getChannel() == null && ChannelUtils.v(model.getChannel()) && !ChannelUtils.y(model.getChannel());
boolean z4 = model.getChannel() == null && ChannelUtils.w(model.getChannel()) && !ChannelUtils.z(model.getChannel());
if (isLocal || model.getType() != 0 || !model.getMessage().isUserMessage() || (!z4 && !PermissionUtils.can(67584, model.getPermissions()))) {
z2 = false;
}
@ -641,13 +641,13 @@ public final class WidgetChatListActions extends AppBottomSheet {
private final void replyMessage(Message message, Channel channel) {
StoreStream.Companion companion = StoreStream.Companion;
long id2 = companion.getUsers().getMe().getId();
boolean v = ChannelUtils.v(channel);
boolean w2 = ChannelUtils.w(channel);
boolean isWebhook = message.isWebhook();
User author = message.getAuthor();
boolean z2 = true;
boolean z3 = author != null && author.i() == id2;
boolean z4 = !isWebhook && !z3;
if (v || isWebhook || z3) {
if (w2 || isWebhook || z3) {
z2 = false;
}
companion.getPendingReplies().onCreatePendingReply(channel, message, z4, z2);

View File

@ -703,20 +703,20 @@ public final class WidgetChatListAdapterItemInvite extends WidgetChatListAdapter
Guild guild2 = component1.getGuild();
boolean z5 = (guild2 != null ? guild2.s() : 0) < 200;
Channel channel = component1.getChannel();
boolean u = channel != null ? ChannelUtils.u(channel) : false;
boolean v2 = channel != null ? ChannelUtils.v(channel) : false;
Guild guild3 = component1.getGuild();
boolean z6 = (guild3 == null || (l = guild3.l()) == null || !l.contains(GuildFeature.HUB)) ? false : true;
boolean z7 = component1.getChannel() == null && component1.getGuild() == null && component1.getInviter() != null;
TextView textView = this.binding.f2184c;
m.checkNotNullExpressionValue(textView, "binding.itemInviteHeader");
String str2 = null;
if (u && z4) {
if (v2 && z4) {
m.checkNotNullExpressionValue(context, "context");
charSequence = c.a.k.b.h(context, R.string.invite_button_title_inviter_group_dm, new Object[0], null, 4);
} else if (z4) {
m.checkNotNullExpressionValue(context, "context");
charSequence = c.a.k.b.h(context, R.string.invite_button_title_inviter, new Object[0], null, 4);
} else if (u && !z4) {
} else if (v2 && !z4) {
m.checkNotNullExpressionValue(context, "context");
charSequence = c.a.k.b.h(context, R.string.invite_button_title_invited_group_dm, new Object[0], null, 4);
} else if (z6) {
@ -740,7 +740,7 @@ public final class WidgetChatListAdapterItemInvite extends WidgetChatListAdapter
textView.setText(charSequence);
TextView textView2 = this.binding.m;
m.checkNotNullExpressionValue(textView2, "binding.itemInviteName");
if (u) {
if (v2) {
if (component5 != null) {
m.checkNotNullExpressionValue(context, "context");
str = ChannelUtils.e(component5, context, false, 2);
@ -757,7 +757,7 @@ public final class WidgetChatListAdapterItemInvite extends WidgetChatListAdapter
SimpleDraweeView simpleDraweeView = this.binding.f;
m.checkNotNullExpressionValue(simpleDraweeView, "binding.itemInviteImage");
simpleDraweeView.setVisibility(8);
} else if (u) {
} else if (v2) {
updateIconUrlIfChanged(IconUtils.getForChannel$default(component1.getChannel(), null, 2, null));
TextView textView3 = this.binding.g;
m.checkNotNullExpressionValue(textView3, "binding.itemInviteImageText");
@ -785,13 +785,13 @@ public final class WidgetChatListAdapterItemInvite extends WidgetChatListAdapter
str2 = GuildUtilsKt.computeShortName(v);
ViewExtensions.setTextAndVisibilityBy(textView4, str2);
}
if (component5 == null && ChannelUtils.r(component5)) {
if (component5 == null && ChannelUtils.s(component5)) {
m.checkNotNullExpressionValue(context, "context");
configureForVocalChannel(component5, context);
} else {
configureForTextChannel(u, component1);
configureForTextChannel(v2, component1);
}
if (u) {
if (v2) {
component4 = component5 != null;
}
z2 = !z6 && GrowthTeamFeatures.INSTANCE.isHubEmailConnectionEnabled();
@ -836,8 +836,8 @@ public final class WidgetChatListAdapterItemInvite extends WidgetChatListAdapter
}
if (component5 == null) {
}
configureForTextChannel(u, component1);
if (u) {
configureForTextChannel(v2, component1);
if (v2) {
}
if (!z6) {
}
@ -873,8 +873,8 @@ public final class WidgetChatListAdapterItemInvite extends WidgetChatListAdapter
}
if (component5 == null) {
}
configureForTextChannel(u, component1);
if (u) {
configureForTextChannel(v2, component1);
if (v2) {
}
if (!z6) {
}

View File

@ -161,7 +161,7 @@ public final class WidgetChatListModel implements WidgetChatListAdapter.Data {
}
private final boolean shouldShowStickerGreet(StoreMessagesLoader.ChannelLoadedState channelLoadedState, WidgetChatListModelMessages widgetChatListModelMessages, Channel channel) {
return channelLoadedState.isOldestMessagesLoaded() && channelLoadedState.isInitialMessagesLoaded() && channelLoadedState.getNewestSentByUserMessageId() == null && widgetChatListModelMessages.getNewestSentByUserMessageId() == null && widgetChatListModelMessages.getItems().size() < 25 && ChannelUtils.m(channel) && !ChannelUtils.y(channel);
return channelLoadedState.isOldestMessagesLoaded() && channelLoadedState.isInitialMessagesLoaded() && channelLoadedState.getNewestSentByUserMessageId() == null && widgetChatListModelMessages.getNewestSentByUserMessageId() == null && widgetChatListModelMessages.getItems().size() < 25 && ChannelUtils.m(channel) && !ChannelUtils.z(channel);
}
public final Observable<WidgetChatListModel> get() {

View File

@ -138,11 +138,11 @@ public final class WidgetChatListModelMessages {
}
private final Observable<Long> observePermissionsForChannel(StorePermissions storePermissions, Channel channel) {
if (ChannelUtils.y(channel)) {
if (ChannelUtils.z(channel)) {
j jVar = new j(null);
m.checkNotNullExpressionValue(jVar, "Observable.just(null)");
return jVar;
} else if (ChannelUtils.v(channel)) {
} else if (ChannelUtils.w(channel)) {
j jVar2 = new j(null);
m.checkNotNullExpressionValue(jVar2, "Observable.just(null)");
return jVar2;

View File

@ -50,19 +50,19 @@ public final class WidgetChatListModelTop$Companion$getWelcomeEntry$2<T1, T2, T3
if (guild != null) {
z3 = guild.isOwner(meUser.getId());
}
if (!ChannelUtils.q(this.$channel) || guild == null || !z4 || !can || (!can2 && z2)) {
if (!ChannelUtils.r(this.$channel) || guild == null || !z4 || !can || (!can2 && z2)) {
Integer num = null;
if (ChannelUtils.v(this.$channel)) {
startOfChatEntry = new StartOfPrivateChatEntry(this.$channel.h(), ChannelUtils.c(this.$channel), this.$channel.A(), IconUtils.getForChannel$default(this.$channel, null, 2, null), ChannelUtils.y(this.$channel), list);
if (ChannelUtils.w(this.$channel)) {
startOfChatEntry = new StartOfPrivateChatEntry(this.$channel.h(), ChannelUtils.c(this.$channel), this.$channel.A(), IconUtils.getForChannel$default(this.$channel, null, 2, null), ChannelUtils.z(this.$channel), list);
} else {
long h = this.$channel.h();
String c2 = ChannelUtils.c(this.$channel);
boolean A = ChannelUtils.A(this.$channel);
boolean B = ChannelUtils.B(this.$channel);
ThreadMetadata y2 = this.$channel.y();
if (y2 != null) {
num = Integer.valueOf(y2.c());
}
startOfChatEntry = new StartOfChatEntry(h, c2, can, can3, canManageThread, A, num, guildMember, user != null ? GuildMember.Companion.getNickOrUsername(guildMember, user) : "");
startOfChatEntry = new StartOfChatEntry(h, c2, can, can3, canManageThread, B, num, guildMember, user != null ? GuildMember.Companion.getNickOrUsername(guildMember, user) : "");
}
return startOfChatEntry;
}

View File

@ -56,7 +56,7 @@ public final class WidgetChannelPinnedMessages$Model$Companion$get$1<T, R> imple
listOf = m.listOf(new LoadingEntry());
} else if (list.isEmpty()) {
WidgetChannelPinnedMessages$Model$Companion$get$1 widgetChannelPinnedMessages$Model$Companion$get$1 = this.this$0;
String string = widgetChannelPinnedMessages$Model$Companion$get$1.$context.getString(ChannelUtils.v(widgetChannelPinnedMessages$Model$Companion$get$1.$channel) ? R.string.no_pins_in_dm : R.string.no_pins_in_channel);
String string = widgetChannelPinnedMessages$Model$Companion$get$1.$context.getString(ChannelUtils.w(widgetChannelPinnedMessages$Model$Companion$get$1.$channel) ? R.string.no_pins_in_dm : R.string.no_pins_in_channel);
c0.z.d.m.checkNotNullExpressionValue(string, "context.getString(\n … )");
listOf = m.listOf(new EmptyPinsEntry(string));
} else {

View File

@ -43,7 +43,7 @@ public final class WidgetDirectoriesViewModel$ViewState$mappedTabs$2 extends o i
int intValue = ((Number) entry.getKey()).intValue();
Channel channel = this.this$0.getChannel();
boolean z2 = true;
if (channel == null || !ChannelUtils.s(channel)) {
if (channel == null || !ChannelUtils.t(channel)) {
z2 = false;
}
map.put(companion.findByKey(intValue, z2), entry.getValue());

View File

@ -128,7 +128,7 @@ public final class GuildTemplateChannelsView extends LinearLayout {
textView.setText(ChannelUtils.c(channelDataPayload.getChannel()));
if (ChannelUtils.k(channelDataPayload.getChannel())) {
this.binding.b.setImageResource(R.drawable.ic_chevron_down_grey_12dp);
} else if (ChannelUtils.C(channelDataPayload.getChannel())) {
} else if (ChannelUtils.D(channelDataPayload.getChannel())) {
this.binding.b.setImageResource(R.drawable.ic_channel_voice_16dp);
} else {
this.binding.b.setImageResource(R.drawable.ic_channel_text_16dp);

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