discord-jadx/app/src/main/java/com/discord/widgets/chat/list/actions/WidgetChatListActions$remov...

61 lines
3.0 KiB
Java

package com.discord.widgets.chat.list.actions;
import android.view.View;
import com.discord.utilities.rest.RestAPI;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.widgets.chat.list.actions.WidgetChatListActions;
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: WidgetChatListActions.kt */
public final class WidgetChatListActions$removeAllReactions$1 extends o implements Function1<View, Unit> {
public final /* synthetic */ WidgetChatListActions.Model $model;
public final /* synthetic */ WidgetChatListActions this$0;
/* compiled from: WidgetChatListActions.kt */
/* renamed from: com.discord.widgets.chat.list.actions.WidgetChatListActions$removeAllReactions$1$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function1<Void, Unit> {
public final /* synthetic */ WidgetChatListActions$removeAllReactions$1 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(WidgetChatListActions$removeAllReactions$1 widgetChatListActions$removeAllReactions$1) {
super(1);
this.this$0 = widgetChatListActions$removeAllReactions$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(Void r1) {
invoke(r1);
return Unit.a;
}
public final void invoke(Void r1) {
this.this$0.this$0.dismiss();
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChatListActions$removeAllReactions$1(WidgetChatListActions widgetChatListActions, WidgetChatListActions.Model model) {
super(1);
this.this$0 = widgetChatListActions;
this.$model = model;
}
/* 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(View view) {
invoke(view);
return Unit.a;
}
public final void invoke(View view) {
m.checkNotNullParameter(view, "view");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().removeAllReactions(this.$model.getMessage().getChannelId(), this.$model.getMessage().getId()), false, 1, null), this.this$0, null, 2, null), view.getContext(), "REST: removeAllReactions", (Function1) null, new AnonymousClass1(this), (Function1) null, (Function0) null, (Function0) null, 116, (Object) null);
}
}