forked from Juby210/discord-jadx
102.9 - Beta (102109)
This commit is contained in:
parent
0e3a45de24
commit
f9aa3ad2be
8 changed files with 25 additions and 22 deletions
|
@ -10,8 +10,8 @@ android {
|
|||
applicationId 'com.discord'
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 102108
|
||||
versionName "102.8 - Beta"
|
||||
versionCode 102109
|
||||
versionName "102.9 - Beta"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="102108" android:versionName="102.8 - Beta" 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="102109" android:versionName="102.9 - Beta" 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"/>
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class StoreMessages$deleteMessage$2 extends o implements Function0<
|
|||
if (this.$message.isLocal()) {
|
||||
String nonce = this.$message.getNonce();
|
||||
if (nonce != null) {
|
||||
StoreMessages.access$getMessageQueue(this.this$0, this.$channelId).cancel(nonce);
|
||||
StoreMessages.access$getOrCreateMessageQueue(this.this$0, this.$channelId).cancel(nonce);
|
||||
}
|
||||
StoreMessages.access$handleLocalMessageDelete(this.this$0, this.$message);
|
||||
Integer type = this.$message.getType();
|
||||
|
|
|
@ -20,9 +20,9 @@ public final class StoreMessages$sendMessage$5<T> implements Action1<Emitter<Mes
|
|||
}
|
||||
|
||||
public final void call(Emitter<MessageResult> emitter) {
|
||||
MessageQueue access$getMessageQueue = StoreMessages.access$getMessageQueue(this.this$0, this.$channelId);
|
||||
MessageQueue access$getOrCreateMessageQueue = StoreMessages.access$getOrCreateMessageQueue(this.this$0, this.$channelId);
|
||||
Function1 function1 = this.$request;
|
||||
m.checkNotNullExpressionValue(emitter, "emitter");
|
||||
access$getMessageQueue.enqueue((MessageRequest) function1.invoke(emitter));
|
||||
access$getOrCreateMessageQueue.enqueue((MessageRequest) function1.invoke(emitter));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,6 @@ public final class StoreMessages$sendMessage$7<T> implements Action1<Emitter<Mes
|
|||
com.discord.api.message.Message synthesizeApiMessage = this.$message.synthesizeApiMessage();
|
||||
ApplicationCommandLocalSendData applicationCommandLocalSendData = this.$applicationCommandLocalSendData;
|
||||
UtcDateTime timestamp = this.$message.getTimestamp();
|
||||
StoreMessages.access$getMessageQueue(this.this$0, this.$message.getChannelId()).enqueue(new MessageRequest.SendApplicationCommand(synthesizeApiMessage, applicationCommandLocalSendData, this.$attachments, new StoreMessages$sendMessage$7$request$2(this), new StoreMessages$sendMessage$7$request$3(this), new StoreMessages$sendMessage$7$request$1(this, emitter), timestamp != null ? timestamp.g() : 0));
|
||||
StoreMessages.access$getOrCreateMessageQueue(this.this$0, this.$message.getChannelId()).enqueue(new MessageRequest.SendApplicationCommand(synthesizeApiMessage, applicationCommandLocalSendData, this.$attachments, new StoreMessages$sendMessage$7$request$2(this), new StoreMessages$sendMessage$7$request$3(this), new StoreMessages$sendMessage$7$request$1(this, emitter), timestamp != null ? timestamp.g() : 0));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,8 +117,8 @@ public final class StoreMessages extends Store {
|
|||
return storeMessages.initResendFinished;
|
||||
}
|
||||
|
||||
public static final /* synthetic */ MessageQueue access$getMessageQueue(StoreMessages storeMessages, long j) {
|
||||
return storeMessages.getMessageQueue(j);
|
||||
public static final /* synthetic */ MessageQueue access$getOrCreateMessageQueue(StoreMessages storeMessages, long j) {
|
||||
return storeMessages.getOrCreateMessageQueue(j);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ StoreStream access$getStream$p(StoreMessages storeMessages) {
|
||||
|
@ -149,9 +149,8 @@ public final class StoreMessages extends Store {
|
|||
storeMessages.trackFailedLocalMessageResolved(message, failedMessageResolutionType);
|
||||
}
|
||||
|
||||
private final synchronized MessageQueue getMessageQueue(long j) {
|
||||
MessageQueue messageQueue;
|
||||
messageQueue = this.messageQueues.get(Long.valueOf(j));
|
||||
private final MessageQueue getOrCreateMessageQueue(long j) {
|
||||
MessageQueue messageQueue = this.messageQueues.get(Long.valueOf(j));
|
||||
if (messageQueue == null) {
|
||||
Context context = this.context;
|
||||
if (context == null) {
|
||||
|
@ -162,8 +161,10 @@ public final class StoreMessages extends Store {
|
|||
ExecutorService executorService = this.queueExecutor;
|
||||
m.checkNotNullExpressionValue(executorService, "queueExecutor");
|
||||
messageQueue = new MessageQueue(contentResolver, executorService, this.clock);
|
||||
synchronized (this.messageQueues) {
|
||||
this.messageQueues.put(Long.valueOf(j), messageQueue);
|
||||
}
|
||||
}
|
||||
return messageQueue;
|
||||
}
|
||||
|
||||
|
@ -429,13 +430,13 @@ public final class StoreMessages extends Store {
|
|||
|
||||
public final void cancelMessageSend(long j, String str) {
|
||||
m.checkNotNullParameter(str, "requestId");
|
||||
getMessageQueue(j).cancel(str);
|
||||
getOrCreateMessageQueue(j).cancel(str);
|
||||
}
|
||||
|
||||
@StoreThread
|
||||
public final void deleteLocalMessage(long j, String str) {
|
||||
m.checkNotNullParameter(str, "nonce");
|
||||
getMessageQueue(j).cancel(str);
|
||||
getOrCreateMessageQueue(j).cancel(str);
|
||||
handleLocalMessageDelete(j, str);
|
||||
}
|
||||
|
||||
|
@ -453,7 +454,7 @@ public final class StoreMessages extends Store {
|
|||
|
||||
public final void editMessage(long j, long j2, String str, MessageAllowedMentions messageAllowedMentions) {
|
||||
m.checkNotNullParameter(str, "content");
|
||||
getMessageQueue(j2).enqueue(new MessageRequest.Edit(j2, str, j, messageAllowedMentions, this.clock.currentTimeMillis()));
|
||||
getOrCreateMessageQueue(j2).enqueue(new MessageRequest.Edit(j2, str, j, messageAllowedMentions, this.clock.currentTimeMillis()));
|
||||
}
|
||||
|
||||
public final Observable<Set<Long>> getAllDetached() {
|
||||
|
@ -480,12 +481,14 @@ public final class StoreMessages extends Store {
|
|||
this.holder.invalidate();
|
||||
return;
|
||||
}
|
||||
synchronized (this.messageQueues) {
|
||||
Collection<MessageQueue> values = this.messageQueues.values();
|
||||
m.checkNotNullExpressionValue(values, "messageQueues.values");
|
||||
for (MessageQueue messageQueue : values) {
|
||||
messageQueue.handleConnected();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void handleConnectionOpen(ModelPayload modelPayload) {
|
||||
m.checkNotNullParameter(modelPayload, "payload");
|
||||
|
|
|
@ -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 + " - 102.8 - Beta (102108)");
|
||||
textView.setText(string + " - 102.9 - Beta (102109)");
|
||||
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);
|
||||
|
|
|
@ -1505,7 +1505,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_2131887585_com_crashlytics_android_build_id">9829ea7736fa44f496b851ce59dbaf13</string>
|
||||
<string name="res_2131887585_com_crashlytics_android_build_id">323b67b63d7148ec9fb7fbedd48e92eb</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>
|
||||
|
|
Loading…
Reference in a new issue