103.3 - Alpha (103203)

This commit is contained in:
Juby210 2021-11-17 19:04:44 +01:00
parent 08d826aa39
commit 5efb8661df
25 changed files with 7032 additions and 6757 deletions

View file

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

View file

@ -0,0 +1,22 @@
package com.discord.stores;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreContactSync.kt */
public final class StoreContactSync$clearDismissStates$1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreContactSync this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreContactSync$clearDismissStates$1(StoreContactSync storeContactSync) {
super(0);
this.this$0 = storeContactSync;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreContactSync.access$getDismissState$p(this.this$0).clear();
this.this$0.markChanged();
}
}

View file

@ -0,0 +1,22 @@
package com.discord.stores;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreContactSync.kt */
public final class StoreContactSync$dismissFriendsListUpsell$1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreContactSync this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreContactSync$dismissFriendsListUpsell$1(StoreContactSync storeContactSync) {
super(0);
this.this$0 = storeContactSync;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreContactSync.access$getDismissState$p(this.this$0).put("CONTACT_SYNC_DISMISS_FRIENDS_UPSELL", Boolean.TRUE);
this.this$0.markChanged();
}
}

View file

@ -0,0 +1,22 @@
package com.discord.stores;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreContactSync.kt */
public final class StoreContactSync$dismissUpsell$1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreContactSync this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreContactSync$dismissUpsell$1(StoreContactSync storeContactSync) {
super(0);
this.this$0 = storeContactSync;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreContactSync.access$getDismissState$p(this.this$0).put("CONTACT_SYNC_DISMISS_UPSELL", Boolean.TRUE);
this.this$0.markChanged();
}
}

View file

@ -0,0 +1,25 @@
package com.discord.stores;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreContactSync.kt */
public final class StoreContactSync$setContactSyncUploadTimestamp$1 extends o implements Function0<Unit> {
public final /* synthetic */ long $timestamp;
public final /* synthetic */ StoreContactSync this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreContactSync$setContactSyncUploadTimestamp$1(StoreContactSync storeContactSync, long j) {
super(0);
this.this$0 = storeContactSync;
this.$timestamp = j;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreContactSync storeContactSync = this.this$0;
StoreContactSync.access$setShouldTryUploadContacts$p(storeContactSync, StoreContactSync.access$getClock$p(storeContactSync).currentTimeMillis() - this.$timestamp > 86400000);
this.this$0.markChanged();
}
}

View file

@ -59,6 +59,22 @@ public final class StoreContactSync extends StoreV2 {
this.userSettingsStore = storeUserSettings;
}
public static final /* synthetic */ Clock access$getClock$p(StoreContactSync storeContactSync) {
return storeContactSync.clock;
}
public static final /* synthetic */ HashMap access$getDismissState$p(StoreContactSync storeContactSync) {
return storeContactSync.dismissState;
}
public static final /* synthetic */ boolean access$getShouldTryUploadContacts$p(StoreContactSync storeContactSync) {
return storeContactSync.shouldTryUploadContacts;
}
public static final /* synthetic */ void access$setShouldTryUploadContacts$p(StoreContactSync storeContactSync, boolean z2) {
storeContactSync.shouldTryUploadContacts = z2;
}
private final StoreNotices.Notice createContactSyncNotice() {
return new StoreNotices.Notice("CONTACT_SYNC_UPSELL", null, 1336, 0, true, null, 0, false, 0, StoreContactSync$createContactSyncNotice$1.INSTANCE, 482, null);
}
@ -78,22 +94,19 @@ public final class StoreContactSync extends StoreV2 {
}
public final void clearDismissStates() {
this.dismissState.clear();
this.dismissStateCache.clear(true);
getPrefsSessionDurable().edit().remove("CONTACT_SYNC_DISMISS_UPSELL").apply();
markChanged();
this.dispatcher.schedule(new StoreContactSync$clearDismissStates$1(this));
}
public final void dismissFriendsListUpsell() {
this.dismissState.put("CONTACT_SYNC_DISMISS_FRIENDS_UPSELL", Boolean.TRUE);
this.dismissStateCache.set(this.dismissState, true);
markChanged();
this.dispatcher.schedule(new StoreContactSync$dismissFriendsListUpsell$1(this));
}
public final void dismissUpsell() {
this.dismissState.put("CONTACT_SYNC_DISMISS_UPSELL", Boolean.TRUE);
getPrefsSessionDurable().edit().putBoolean("CONTACT_SYNC_DISMISS_UPSELL", true).apply();
markChanged();
this.dispatcher.schedule(new StoreContactSync$dismissUpsell$1(this));
}
public final boolean getFriendsListUpsellDismissed() {
@ -167,8 +180,7 @@ public final class StoreContactSync extends StoreV2 {
}
public final void setContactSyncUploadTimestamp(long j) {
this.shouldTryUploadContacts = this.clock.currentTimeMillis() - j > 86400000;
this.uploadTimestampCache.set(Long.valueOf(j), true);
markChanged();
this.dispatcher.schedule(new StoreContactSync$setContactSyncUploadTimestamp$1(this, j));
}
}

View file

@ -1,18 +1,53 @@
package com.discord.stores;
import com.discord.utilities.error.Error;
import d0.t.n;
import rx.functions.Action1;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreGifPicker.kt */
public final class StoreGifPicker$fetchGifsForSearchQuery$2<T> implements Action1<Throwable> {
public final class StoreGifPicker$fetchGifsForSearchQuery$2 extends o implements Function1<Error, Unit> {
public final /* synthetic */ String $query;
public final /* synthetic */ StoreGifPicker this$0;
/* compiled from: StoreGifPicker.kt */
/* renamed from: com.discord.stores.StoreGifPicker$fetchGifsForSearchQuery$2$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreGifPicker$fetchGifsForSearchQuery$2 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(StoreGifPicker$fetchGifsForSearchQuery$2 storeGifPicker$fetchGifsForSearchQuery$2) {
super(0);
this.this$0 = storeGifPicker$fetchGifsForSearchQuery$2;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreGifPicker$fetchGifsForSearchQuery$2 storeGifPicker$fetchGifsForSearchQuery$2 = this.this$0;
StoreGifPicker.access$handleGifSearchResults(storeGifPicker$fetchGifsForSearchQuery$2.this$0, storeGifPicker$fetchGifsForSearchQuery$2.$query, n.emptyList());
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreGifPicker$fetchGifsForSearchQuery$2(StoreGifPicker storeGifPicker, String str) {
super(1);
this.this$0 = storeGifPicker;
this.$query = str;
}
public final void call(Throwable th) {
StoreGifPicker.access$handleGifSearchResults(this.this$0, this.$query, n.emptyList());
/* 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(Error error) {
invoke(error);
return Unit.a;
}
public final void invoke(Error error) {
m.checkNotNullParameter(error, "it");
StoreGifPicker.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this));
}
}

View file

@ -1,18 +1,53 @@
package com.discord.stores;
import com.discord.utilities.error.Error;
import d0.t.n;
import rx.functions.Action1;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreGifPicker.kt */
public final class StoreGifPicker$fetchSuggestedSearchTerms$1<T> implements Action1<Throwable> {
public final class StoreGifPicker$fetchSuggestedSearchTerms$1 extends o implements Function1<Error, Unit> {
public final /* synthetic */ String $query;
public final /* synthetic */ StoreGifPicker this$0;
/* compiled from: StoreGifPicker.kt */
/* renamed from: com.discord.stores.StoreGifPicker$fetchSuggestedSearchTerms$1$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreGifPicker$fetchSuggestedSearchTerms$1 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(StoreGifPicker$fetchSuggestedSearchTerms$1 storeGifPicker$fetchSuggestedSearchTerms$1) {
super(0);
this.this$0 = storeGifPicker$fetchSuggestedSearchTerms$1;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreGifPicker$fetchSuggestedSearchTerms$1 storeGifPicker$fetchSuggestedSearchTerms$1 = this.this$0;
StoreGifPicker.access$handleSuggestedSearchTerms(storeGifPicker$fetchSuggestedSearchTerms$1.this$0, storeGifPicker$fetchSuggestedSearchTerms$1.$query, n.emptyList());
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreGifPicker$fetchSuggestedSearchTerms$1(StoreGifPicker storeGifPicker, String str) {
super(1);
this.this$0 = storeGifPicker;
this.$query = str;
}
public final void call(Throwable th) {
StoreGifPicker.access$handleSuggestedSearchTerms(this.this$0, this.$query, n.emptyList());
/* 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(Error error) {
invoke(error);
return Unit.a;
}
public final void invoke(Error error) {
m.checkNotNullParameter(error, "it");
StoreGifPicker.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this));
}
}

View file

@ -28,11 +28,7 @@ public final class StoreGifPicker$fetchSuggestedSearchTerms$2 extends o implemen
/* renamed from: invoke */
public final void mo1invoke() {
StoreGifPicker$fetchSuggestedSearchTerms$2 storeGifPicker$fetchSuggestedSearchTerms$2 = this.this$0;
StoreGifPicker storeGifPicker = storeGifPicker$fetchSuggestedSearchTerms$2.this$0;
String str = storeGifPicker$fetchSuggestedSearchTerms$2.$query;
List list = this.$suggestedSearchTerms;
m.checkNotNullExpressionValue(list, "suggestedSearchTerms");
StoreGifPicker.access$handleSuggestedSearchTerms(storeGifPicker, str, list);
StoreGifPicker.access$handleSuggestedSearchTerms(storeGifPicker$fetchSuggestedSearchTerms$2.this$0, storeGifPicker$fetchSuggestedSearchTerms$2.$query, this.$suggestedSearchTerms);
}
}
@ -52,6 +48,7 @@ public final class StoreGifPicker$fetchSuggestedSearchTerms$2 extends o implemen
}
public final void invoke(List<String> list) {
m.checkNotNullParameter(list, "suggestedSearchTerms");
StoreGifPicker.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, list));
}
}

View file

@ -288,15 +288,11 @@ public final class StoreGifPicker extends StoreV2 {
private final void fetchGifsForSearchQuery(String str) {
Observable<R> F = this.restAPI.getGifSearchResults(str, "tenor", this.storeUserSettingsSystem.getLocale(), "tinygif", 50).F(StoreGifPicker$fetchGifsForSearchQuery$1.INSTANCE);
m.checkNotNullExpressionValue(F, "restAPI.getGifSearchResu…to)\n }\n }");
Observable s2 = ObservableExtensionsKt.restSubscribeOn$default(F, false, 1, null).s(new StoreGifPicker$fetchGifsForSearchQuery$2(this, str));
m.checkNotNullExpressionValue(s2, "restAPI.getGifSearchResu…y, emptyList())\n }");
ObservableExtensionsKt.appSubscribe$default(s2, StoreGifPicker.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreGifPicker$fetchGifsForSearchQuery$3(this, str), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(F, false, 1, null), StoreGifPicker.class, (Context) null, (Function1) null, new StoreGifPicker$fetchGifsForSearchQuery$2(this, str), (Function0) null, (Function0) null, new StoreGifPicker$fetchGifsForSearchQuery$3(this, str), 54, (Object) null);
}
private final void fetchSuggestedSearchTerms(String str) {
Observable s2 = ObservableExtensionsKt.restSubscribeOn$default(this.restAPI.getGifSuggestedSearchTerms("tenor", str, this.storeUserSettingsSystem.getLocale(), 5), false, 1, null).s(new StoreGifPicker$fetchSuggestedSearchTerms$1(this, str));
m.checkNotNullExpressionValue(s2, "restAPI.getGifSuggestedS…y, emptyList())\n }");
ObservableExtensionsKt.appSubscribe$default(s2, StoreGifPicker.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreGifPicker$fetchSuggestedSearchTerms$2(this, str), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(this.restAPI.getGifSuggestedSearchTerms("tenor", str, this.storeUserSettingsSystem.getLocale(), 5), false, 1, null), StoreGifPicker.class, (Context) null, (Function1) null, new StoreGifPicker$fetchSuggestedSearchTerms$1(this, str), (Function0) null, (Function0) null, new StoreGifPicker$fetchSuggestedSearchTerms$2(this, str), 54, (Object) null);
}
private final void fetchTrendingCategoryGifs() {

View file

@ -1,30 +1,23 @@
package com.discord.stores;
import com.discord.utilities.error.Error;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreGuildScheduledEvents.kt */
public final class StoreGuildScheduledEvents$fetchRsvpUsers$1 extends o implements Function1<Error, Unit> {
public final class StoreGuildScheduledEvents$fetchRsvpUsers$1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreGuildScheduledEvents this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreGuildScheduledEvents$fetchRsvpUsers$1(StoreGuildScheduledEvents storeGuildScheduledEvents) {
super(1);
super(0);
this.this$0 = storeGuildScheduledEvents;
}
/* 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(Error error) {
invoke(error);
return Unit.a;
}
public final void invoke(Error error) {
m.checkNotNullParameter(error, "it");
StoreGuildScheduledEvents.access$handleFetchRsvpUsersFailure(this.this$0);
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreGuildScheduledEvents.access$setUsersForGuildEventFetching$p(this.this$0, true);
StoreGuildScheduledEvents.access$setUsersForGuildEventError$p(this.this$0, false);
this.this$0.markChanged();
}
}

View file

@ -1,65 +1,30 @@
package com.discord.stores;
import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUser;
import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUsersResponse;
import com.discord.utilities.error.Error;
import d0.z.d.m;
import d0.z.d.o;
import java.util.HashMap;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreGuildScheduledEvents.kt */
public final class StoreGuildScheduledEvents$fetchRsvpUsers$2 extends o implements Function1<GuildScheduledEventRsvpUsersResponse, Unit> {
public final /* synthetic */ long $eventId;
public final class StoreGuildScheduledEvents$fetchRsvpUsers$2 extends o implements Function1<Error, Unit> {
public final /* synthetic */ StoreGuildScheduledEvents this$0;
/* compiled from: StoreGuildScheduledEvents.kt */
/* renamed from: com.discord.stores.StoreGuildScheduledEvents$fetchRsvpUsers$2$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function0<Unit> {
public final /* synthetic */ GuildScheduledEventRsvpUsersResponse $response;
public final /* synthetic */ StoreGuildScheduledEvents$fetchRsvpUsers$2 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(StoreGuildScheduledEvents$fetchRsvpUsers$2 storeGuildScheduledEvents$fetchRsvpUsers$2, GuildScheduledEventRsvpUsersResponse guildScheduledEventRsvpUsersResponse) {
super(0);
this.this$0 = storeGuildScheduledEvents$fetchRsvpUsers$2;
this.$response = guildScheduledEventRsvpUsersResponse;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
HashMap hashMap = (HashMap) StoreGuildScheduledEvents.access$getUsersForGuildEvent$p(this.this$0.this$0).get(Long.valueOf(this.this$0.$eventId));
if (hashMap == null) {
hashMap = new HashMap();
}
for (GuildScheduledEventRsvpUser guildScheduledEventRsvpUser : this.$response.a()) {
hashMap.put(Long.valueOf(guildScheduledEventRsvpUser.d()), guildScheduledEventRsvpUser);
}
StoreGuildScheduledEvents.access$getUsersForGuildEvent$p(this.this$0.this$0).put(Long.valueOf(this.this$0.$eventId), hashMap);
StoreGuildScheduledEvents.access$setUsersForGuildEventFetching$p(this.this$0.this$0, false);
StoreGuildScheduledEvents.access$setUsersForGuildEventError$p(this.this$0.this$0, false);
this.this$0.this$0.markChanged();
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreGuildScheduledEvents$fetchRsvpUsers$2(StoreGuildScheduledEvents storeGuildScheduledEvents, long j) {
public StoreGuildScheduledEvents$fetchRsvpUsers$2(StoreGuildScheduledEvents storeGuildScheduledEvents) {
super(1);
this.this$0 = storeGuildScheduledEvents;
this.$eventId = j;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(GuildScheduledEventRsvpUsersResponse guildScheduledEventRsvpUsersResponse) {
invoke(guildScheduledEventRsvpUsersResponse);
public /* bridge */ /* synthetic */ Unit invoke(Error error) {
invoke(error);
return Unit.a;
}
public final void invoke(GuildScheduledEventRsvpUsersResponse guildScheduledEventRsvpUsersResponse) {
m.checkNotNullParameter(guildScheduledEventRsvpUsersResponse, "response");
StoreGuildScheduledEvents.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, guildScheduledEventRsvpUsersResponse));
public final void invoke(Error error) {
m.checkNotNullParameter(error, "it");
StoreGuildScheduledEvents.access$handleFetchRsvpUsersFailure(this.this$0);
}
}

View file

@ -0,0 +1,65 @@
package com.discord.stores;
import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUser;
import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUsersResponse;
import d0.z.d.m;
import d0.z.d.o;
import java.util.HashMap;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreGuildScheduledEvents.kt */
public final class StoreGuildScheduledEvents$fetchRsvpUsers$3 extends o implements Function1<GuildScheduledEventRsvpUsersResponse, Unit> {
public final /* synthetic */ long $eventId;
public final /* synthetic */ StoreGuildScheduledEvents this$0;
/* compiled from: StoreGuildScheduledEvents.kt */
/* renamed from: com.discord.stores.StoreGuildScheduledEvents$fetchRsvpUsers$3$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function0<Unit> {
public final /* synthetic */ GuildScheduledEventRsvpUsersResponse $response;
public final /* synthetic */ StoreGuildScheduledEvents$fetchRsvpUsers$3 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(StoreGuildScheduledEvents$fetchRsvpUsers$3 storeGuildScheduledEvents$fetchRsvpUsers$3, GuildScheduledEventRsvpUsersResponse guildScheduledEventRsvpUsersResponse) {
super(0);
this.this$0 = storeGuildScheduledEvents$fetchRsvpUsers$3;
this.$response = guildScheduledEventRsvpUsersResponse;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
HashMap hashMap = (HashMap) StoreGuildScheduledEvents.access$getUsersForGuildEvent$p(this.this$0.this$0).get(Long.valueOf(this.this$0.$eventId));
if (hashMap == null) {
hashMap = new HashMap();
}
for (GuildScheduledEventRsvpUser guildScheduledEventRsvpUser : this.$response.a()) {
hashMap.put(Long.valueOf(guildScheduledEventRsvpUser.d()), guildScheduledEventRsvpUser);
}
StoreGuildScheduledEvents.access$getUsersForGuildEvent$p(this.this$0.this$0).put(Long.valueOf(this.this$0.$eventId), hashMap);
StoreGuildScheduledEvents.access$setUsersForGuildEventFetching$p(this.this$0.this$0, false);
StoreGuildScheduledEvents.access$setUsersForGuildEventError$p(this.this$0.this$0, false);
this.this$0.this$0.markChanged();
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreGuildScheduledEvents$fetchRsvpUsers$3(StoreGuildScheduledEvents storeGuildScheduledEvents, long j) {
super(1);
this.this$0 = storeGuildScheduledEvents;
this.$eventId = j;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(GuildScheduledEventRsvpUsersResponse guildScheduledEventRsvpUsersResponse) {
invoke(guildScheduledEventRsvpUsersResponse);
return Unit.a;
}
public final void invoke(GuildScheduledEventRsvpUsersResponse guildScheduledEventRsvpUsersResponse) {
m.checkNotNullParameter(guildScheduledEventRsvpUsersResponse, "response");
StoreGuildScheduledEvents.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, guildScheduledEventRsvpUsersResponse));
}
}

View file

@ -402,10 +402,8 @@ public final class StoreGuildScheduledEvents extends StoreV2 {
}
public final void fetchRsvpUsers(long j, long j2) {
this.isUsersForGuildEventFetching = true;
this.isUsersForGuildEventError = false;
markChanged();
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().getGuildScheduledEventUsers(j, j2, 100, true), false, 1, null), StoreGuildScheduledEvents.class, (Context) null, (Function1) null, new StoreGuildScheduledEvents$fetchRsvpUsers$1(this), (Function0) null, (Function0) null, new StoreGuildScheduledEvents$fetchRsvpUsers$2(this, j2), 54, (Object) null);
this.dispatcher.schedule(new StoreGuildScheduledEvents$fetchRsvpUsers$1(this));
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().getGuildScheduledEventUsers(j, j2, 100, true), false, 1, null), StoreGuildScheduledEvents.class, (Context) null, (Function1) null, new StoreGuildScheduledEvents$fetchRsvpUsers$2(this), (Function0) null, (Function0) null, new StoreGuildScheduledEvents$fetchRsvpUsers$3(this, j2), 54, (Object) null);
}
public final void fetchUserGuildScheduledEvents(long j) {

View file

@ -0,0 +1,21 @@
package com.discord.stores;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreNotificationUpsells.kt */
public final class StoreNotificationUpsells$dismissPushNotificationsUpsell$1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreNotificationUpsells this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreNotificationUpsells$dismissPushNotificationsUpsell$1(StoreNotificationUpsells storeNotificationUpsells) {
super(0);
this.this$0 = storeNotificationUpsells;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
this.this$0.markChanged();
}
}

View file

@ -7,20 +7,19 @@ import kotlin.jvm.internal.DefaultConstructorMarker;
import rx.Observable;
/* compiled from: StoreNotificationUpsells.kt */
public final class StoreNotificationUpsells extends StoreV2 {
private final Dispatcher dispatcher;
private final ObservationDeck observationDeck;
public StoreNotificationUpsells() {
this(null, 1, null);
}
public StoreNotificationUpsells(ObservationDeck observationDeck) {
public StoreNotificationUpsells(Dispatcher dispatcher, ObservationDeck observationDeck) {
m.checkNotNullParameter(dispatcher, "dispatcher");
m.checkNotNullParameter(observationDeck, "observationDeck");
this.dispatcher = dispatcher;
this.observationDeck = observationDeck;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ StoreNotificationUpsells(ObservationDeck observationDeck, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? ObservationDeckProvider.get() : observationDeck);
public /* synthetic */ StoreNotificationUpsells(Dispatcher dispatcher, ObservationDeck observationDeck, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(dispatcher, (i & 2) != 0 ? ObservationDeckProvider.get() : observationDeck);
}
public static final /* synthetic */ boolean access$getPushNotificationsUpsellDismissed(StoreNotificationUpsells storeNotificationUpsells) {
@ -33,7 +32,7 @@ public final class StoreNotificationUpsells extends StoreV2 {
public final void dismissPushNotificationsUpsell() {
getPrefsSessionDurable().edit().putBoolean("PUSH_NOTIFICATIONS_DISMISS_UPSELL", true).apply();
markChanged();
this.dispatcher.schedule(new StoreNotificationUpsells$dismissPushNotificationsUpsell$1(this));
}
public final Observable<Boolean> observePushNotificationUpsellDismissed() {

View file

@ -894,7 +894,7 @@ public final class StoreStream {
StoreAccessibility storeAccessibility = new StoreAccessibility(dispatcher, null, null, 6, null);
this.accessibility = storeAccessibility;
this.userSettings = new StoreUserSettings(dispatcher, storeAccessibility);
StoreUserSettingsSystem storeUserSettingsSystem = new StoreUserSettingsSystem(new StoreStream$userSettingsSystem$1(this));
StoreUserSettingsSystem storeUserSettingsSystem = new StoreUserSettingsSystem(new StoreStream$userSettingsSystem$1(this), dispatcher);
this.userSettingsSystem = storeUserSettingsSystem;
this.userSurvey = new StoreUserSurvey(dispatcher, storeUser, storeGuilds, storePermissions, ObservationDeckProvider.get(), companion.getApi(), clock, SharedPreferencesProvider.INSTANCE.get());
this.userRequiredAction = new StoreUserRequiredActions(ObservationDeckProvider.get());
@ -1040,7 +1040,7 @@ public final class StoreStream {
this.guildScheduledEvents = storeGuildScheduledEvents;
StoreGuildRoleSubscriptions storeGuildRoleSubscriptions = new StoreGuildRoleSubscriptions(this.dispatcher, null, 2, null);
this.guildRoleSubscriptions = storeGuildRoleSubscriptions;
StoreNotificationUpsells storeNotificationUpsells = new StoreNotificationUpsells(null, 1, null);
StoreNotificationUpsells storeNotificationUpsells = new StoreNotificationUpsells(this.dispatcher, null, 2, null);
this.notificationUpsells = storeNotificationUpsells;
ConnectionTimeStats connectionTimeStats = new ConnectionTimeStats(this.clock);
this.connectionTimeStats = connectionTimeStats;

View file

@ -0,0 +1,27 @@
package com.discord.stores;
import com.discord.stores.StoreUserSettingsSystem;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreUserSettingsSystem.kt */
public final class StoreUserSettingsSystem$setFontScale$2 extends o implements Function0<Unit> {
public final /* synthetic */ int $fontScale;
public final /* synthetic */ StoreUserSettingsSystem this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreUserSettingsSystem$setFontScale$2(StoreUserSettingsSystem storeUserSettingsSystem, int i) {
super(0);
this.this$0 = storeUserSettingsSystem;
this.$fontScale = i;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreUserSettingsSystem storeUserSettingsSystem = this.this$0;
StoreUserSettingsSystem.access$setSettings$p(storeUserSettingsSystem, StoreUserSettingsSystem.Settings.copy$default(StoreUserSettingsSystem.access$getSettings$p(storeUserSettingsSystem), null, null, this.$fontScale, 3, null));
this.this$0.markChanged();
StoreUserSettingsSystem.access$getOnFontScaleUpdated$p(this.this$0).invoke(Integer.valueOf(this.$fontScale));
}
}

View file

@ -22,6 +22,7 @@ import rx.Observable;
public final class StoreUserSettingsSystem extends StoreV2 {
public static final Companion Companion = new Companion(null);
private static final boolean DEFAULT_IS_CLIENT_SYNC_ENABLED = true;
private final Dispatcher dispatcher;
private final Function1<Integer, Unit> onFontScaleUpdated;
private Settings settings;
@ -134,9 +135,15 @@ public final class StoreUserSettingsSystem extends StoreV2 {
/* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: kotlin.jvm.functions.Function1<? super java.lang.Integer, kotlin.Unit> */
/* JADX WARN: Multi-variable type inference failed */
public StoreUserSettingsSystem(Function1<? super Integer, Unit> function1) {
public StoreUserSettingsSystem(Function1<? super Integer, Unit> function1, Dispatcher dispatcher) {
m.checkNotNullParameter(function1, "onFontScaleUpdated");
m.checkNotNullParameter(dispatcher, "dispatcher");
this.onFontScaleUpdated = function1;
this.dispatcher = dispatcher;
}
public static final /* synthetic */ Function1 access$getOnFontScaleUpdated$p(StoreUserSettingsSystem storeUserSettingsSystem) {
return storeUserSettingsSystem.onFontScaleUpdated;
}
public static final /* synthetic */ Settings access$getSettings$p(StoreUserSettingsSystem storeUserSettingsSystem) {
@ -276,17 +283,11 @@ public final class StoreUserSettingsSystem extends StoreV2 {
}
public final void setFontScale(int i) {
Settings settings = this.settings;
if (settings == null) {
m.throwUninitializedPropertyAccessException("settings");
}
this.settings = Settings.copy$default(settings, null, null, i, 3, null);
SharedPreferences.Editor edit = getPrefs().edit();
m.checkNotNullExpressionValue(edit, "editor");
edit.putInt("CACHE_KEY_FONT_SCALE", i);
edit.apply();
markChanged();
this.onFontScaleUpdated.invoke(Integer.valueOf(i));
this.dispatcher.schedule(new StoreUserSettingsSystem$setFontScale$2(this, i));
}
public final void setIsLocaleSyncEnabled(boolean z2) {

View file

@ -346,7 +346,7 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi
TextView textView = binding.f;
m.checkNotNullExpressionValue(textView, "appInfoHeader");
String string = getString(R.string.app_information);
textView.setText(string + " - 103.2 - Alpha (103202)");
textView.setText(string + " - 103.3 - Alpha (103203)");
binding.B.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$3(this));
binding.u.setOnClickListener(WidgetSettings$onViewBound$1$5.INSTANCE);
binding.q.setOnClickListener(WidgetSettings$onViewBound$1$6.INSTANCE);

View file

@ -3619,6 +3619,16 @@
<string name="guild_join_reason_other">Other</string>
<string name="guild_join_reason_search_online">I searched for a server online</string>
<string name="guild_join_reason_title_label">Your Answer</string>
<string name="guild_leave_feedback_accident">I didn\'t mean to join this server</string>
<string name="guild_leave_feedback_body">Why did you leave !!{server}!!?</string>
<string name="guild_leave_feedback_confusing">Server was too confusing/I did not understand how to use it</string>
<string name="guild_leave_feedback_disruptive">Too many notifications</string>
<string name="guild_leave_feedback_header">Can you tell us more?</string>
<string name="guild_leave_feedback_inactive">There is no activity in this server</string>
<string name="guild_leave_feedback_overactive">Too much activity in server</string>
<string name="guild_leave_feedback_report">Thanks for your feedback! Feedback like yours helps us improve Discord.</string>
<string name="guild_leave_feedback_uncomfortable">Server content and/or members made me uncomfortable</string>
<string name="guild_leave_feedback_uninterested">I am not interested in the topic of this server</string>
<string name="guild_member_avatar_upsell_body">Be who you want and use a different avatar in each of your servers, upgrade your profile, [and more with Discord Nitro!](onAndMore)</string>
<string name="guild_member_avatar_upsell_body_mobile">Be who you want and use a different avatar in each of your servers, upgrade your profile, and more with Discord Nitro!</string>
<string name="guild_member_avatar_upsell_title">Wanna use a different avatar?</string>
@ -6146,8 +6156,8 @@
<string name="move_members_description">Members with this permission can drag other members out of this channel. They can only move members between channels both they and the member they are moving have access.</string>
<string name="move_to">Move To</string>
<string name="move_to_success">User has been moved to the selected channel.</string>
<string name="res_2131892246_msg_alert_cleared">Alert Cleared</string>
<string name="res_2131892247_msg_no_alert_showing">No Alert Showing</string>
<string name="res_2131892256_msg_alert_cleared">Alert Cleared</string>
<string name="res_2131892257_msg_no_alert_showing">No Alert Showing</string>
<string name="mtrl_badge_numberless_content_description">New notification</string>
<string name="mtrl_chip_close_icon_content_description">Remove %1$s</string>
<string name="mtrl_exceed_max_badge_number_content_description">More than %1$d new notifications</string>

View file

@ -3619,6 +3619,16 @@
<string name="guild_join_reason_other">[Öţĥéŕ one]</string>
<string name="guild_join_reason_search_online">[Î šéåŕçĥéð ƒöŕ å šéŕVéŕ öñļîñé one two three four]</string>
<string name="guild_join_reason_title_label">[Ýöûŕ Åñšŵéŕ one two]</string>
<string name="guild_leave_feedback_accident">[Î ðîðñ\'ţ ḿéåñ ţö ĵöîñ ţĥîš šéŕVéŕ one two three four]</string>
<string name="guild_leave_feedback_body">[Ŵĥý ðîð ýöû ļéåVé ¡¡»{server}«¡¡¿ one two three]</string>
<string name="guild_leave_feedback_confusing">[ŠéŕVéŕ ŵåš ţöö çöñƒûšîñĝ/Î ðîð ñöţ ûñðéŕšţåñð ĥöŵ ţö ûšé îţ one two three four five six seven]</string>
<string name="guild_leave_feedback_disruptive">[Ţöö ḿåñý ñöţîƒîçåţîöñš one two three]</string>
<string name="guild_leave_feedback_header">[Çåñ ýöû ţéļļ ûš ḿöŕé¿ one two three]</string>
<string name="guild_leave_feedback_inactive">[Ţĥéŕé îš ñö åçţîVîţý îñ ţĥîš šéŕVéŕ one two three four]</string>
<string name="guild_leave_feedback_overactive">[Ţöö ḿûçĥ åçţîVîţý îñ šéŕVéŕ one two three four]</string>
<string name="guild_leave_feedback_report">[Ţĥåñķš ƒöŕ ýöûŕ ƒééðɓåçķ¡ Fééðɓåçķ ļîķé ýöûŕš ĥéļþš ûš îḿþŕöVé Ðîšçöŕð. one two three four five six seven eight]</string>
<string name="guild_leave_feedback_uncomfortable">[ŠéŕVéŕ çöñţéñţ åñð/öŕ ḿéḿɓéŕš ḿåðé ḿé ûñçöḿƒöŕţåɓļé one two three four five six]</string>
<string name="guild_leave_feedback_uninterested">[Î åḿ ñöţ îñţéŕéšţéð îñ ţĥé ţöþîç öƒ ţĥîš šéŕVéŕ one two three four five six]</string>
<string name="guild_member_avatar_upsell_body">[βé ŵĥö ýöû ŵåñţ åñð ûšé å ðéŕéñţ åVåţåŕ îñ éåçĥ öƒ ýöûŕ šéŕVéŕš, ûþĝŕåðé ýöûŕ þŕöƒîļé, [åñð ḿöŕé ŵîţĥ Ðîšçöŕð Ñîţŕö¡](öñÅñðḾöŕé) one two three four five six seven eight nine ten eleven twelve thirteen fourteen fiveteen sixteen seventeen nineteen twenty one two three]</string>
<string name="guild_member_avatar_upsell_body_mobile">[βé ŵĥö ýöû ŵåñţ åñð ûšé å ðéŕéñţ åVåţåŕ îñ éåçĥ öƒ ýöûŕ šéŕVéŕš, ûþĝŕåðé ýöûŕ þŕöƒîļé, åñð ḿöŕé ŵîţĥ Ðîšçöŕð Ñîţŕö¡ one two three four five six seven eight nine ten eleven twelve]</string>
<string name="guild_member_avatar_upsell_title">[Ŵåññå ûšé å ðéŕéñţ åVåţåŕ¿ one two three four]</string>
@ -6146,8 +6156,8 @@
<string name="move_members_description">[Ḿéḿɓéŕš ŵîţĥ ţĥîš þéŕḿîššîöñ çåñ ðŕåĝ öţĥéŕ ḿéḿɓéŕš öûţ öƒ ţĥîš çĥåññéļ. Ţĥéý çåñ öñļý ḿöVé ḿéḿɓéŕš ɓéţŵééñ çĥåññéļš ɓöţĥ ţĥéý åñð ţĥé ḿéḿɓéŕ ţĥéý åŕé ḿöVîñĝ ĥåVé åççéšš. one two three four five six seven eight nine ten eleven twelve thirteen fourteen fiveteen]</string>
<string name="move_to">[ḾöVé Ţö one two]</string>
<string name="move_to_success">[Ûšéŕ ĥåš ɓééñ ḿöVéð ţö ţĥé šéļéçţéð çĥåññéļ. one two three four five]</string>
<string name="res_2131892246_msg_alert_cleared">[Åļéŕţ Çļéåŕéð one two]</string>
<string name="res_2131892247_msg_no_alert_showing">[Ñö Åļéŕţ Šĥöŵîñĝ one two three]</string>
<string name="res_2131892256_msg_alert_cleared">[Åļéŕţ Çļéåŕéð one two]</string>
<string name="res_2131892257_msg_no_alert_showing">[Ñö Åļéŕţ Šĥöŵîñĝ one two three]</string>
<string name="mtrl_badge_numberless_content_description">[Ñéŵ ñöţîƒîçåţîöñ one two three]</string>
<string name="mtrl_chip_close_icon_content_description">[ŔéḿöVé »%1$s« one two]</string>
<string name="mtrl_exceed_max_badge_number_content_description">[Ḿöŕé ţĥåñ %1$d ñéŵ ñöţîƒîçåţîöñš one two three four]</string>

File diff suppressed because it is too large Load diff

View file

@ -1511,7 +1511,7 @@
<string name="color_picker_title">Select a color</string>
<string name="color_picker_transparency">Transparency</string>
<string name="color_picker_use_default">Use Default</string>
<string name="res_2131887592_com_crashlytics_android_build_id">70e14758b4a14c229d3d5ddc823c3ab0</string>
<string name="res_2131887592_com_crashlytics_android_build_id">019b6ff2646845b190c3d7ed158927a5</string>
<string name="coming_soon">Coming Soon</string>
<string name="command_accessibility_desc_app_header_item">Slash command application {applicationName}</string>
<string name="command_accessibility_desc_app_item">{applicationName} application</string>
@ -3635,6 +3635,16 @@
<string name="guild_join_reason_other">Other</string>
<string name="guild_join_reason_search_online">I searched for a server online</string>
<string name="guild_join_reason_title_label">Your Answer</string>
<string name="guild_leave_feedback_accident">I didn\'t mean to join this server</string>
<string name="guild_leave_feedback_body">Why did you leave !!{server}!!?</string>
<string name="guild_leave_feedback_confusing">Server was too confusing/I did not understand how to use it</string>
<string name="guild_leave_feedback_disruptive">Too many notifications</string>
<string name="guild_leave_feedback_header">Can you tell us more?</string>
<string name="guild_leave_feedback_inactive">There is no activity in this server</string>
<string name="guild_leave_feedback_overactive">Too much activity in server</string>
<string name="guild_leave_feedback_report">Thanks for your feedback! Feedback like yours helps us improve Discord.</string>
<string name="guild_leave_feedback_uncomfortable">Server content and/or members made me uncomfortable</string>
<string name="guild_leave_feedback_uninterested">I am not interested in the topic of this server</string>
<string name="guild_member_avatar_upsell_body">Be who you want and use a different avatar in each of your servers, upgrade your profile, [and more with Discord Nitro!](onAndMore)</string>
<string name="guild_member_avatar_upsell_body_mobile">Be who you want and use a different avatar in each of your servers, upgrade your profile, and more with Discord Nitro!</string>
<string name="guild_member_avatar_upsell_title">Wanna use a different avatar?</string>
@ -6165,8 +6175,8 @@
<string name="move_members_description">Members with this permission can drag other members out of this channel. They can only move members between channels both they and the member they are moving have access.</string>
<string name="move_to">Move To</string>
<string name="move_to_success">User has been moved to the selected channel.</string>
<string name="res_2131892246_msg_alert_cleared">Alert Cleared</string>
<string name="res_2131892247_msg_no_alert_showing">No Alert Showing</string>
<string name="res_2131892256_msg_alert_cleared">Alert Cleared</string>
<string name="res_2131892257_msg_no_alert_showing">No Alert Showing</string>
<string name="mtrl_badge_numberless_content_description">New notification</string>
<string name="mtrl_chip_close_icon_content_description">Remove %1$s</string>
<string name="mtrl_exceed_max_badge_number_content_description">More than %1$d new notifications</string>