2021-07-24 02:37:17 +00:00
|
|
|
package c.a.a;
|
|
|
|
|
2021-08-03 07:33:18 +00:00
|
|
|
import android.content.Context;
|
|
|
|
import android.view.View;
|
|
|
|
import c.a.a.w;
|
|
|
|
import com.discord.restapi.RestAPIParams;
|
|
|
|
import com.discord.utilities.channel.ChannelSelector;
|
|
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
2021-07-24 02:37:17 +00:00
|
|
|
import d0.z.d.m;
|
|
|
|
import java.util.Objects;
|
2021-08-03 07:33:18 +00:00
|
|
|
import kotlin.jvm.functions.Function0;
|
2021-07-24 02:37:17 +00:00
|
|
|
import kotlin.jvm.functions.Function1;
|
2021-08-03 07:33:18 +00:00
|
|
|
import kotlin.reflect.KProperty;
|
|
|
|
/* compiled from: WidgetUrgentMessageDialog.kt */
|
|
|
|
public final class t implements View.OnClickListener {
|
|
|
|
public final /* synthetic */ s i;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2021-08-03 07:33:18 +00:00
|
|
|
public t(s sVar) {
|
|
|
|
this.i = sVar;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-03 07:33:18 +00:00
|
|
|
@Override // android.view.View.OnClickListener
|
|
|
|
public final void onClick(View view) {
|
|
|
|
Integer num;
|
|
|
|
s sVar = this.i;
|
|
|
|
KProperty[] kPropertyArr = s.i;
|
|
|
|
w h = sVar.h();
|
|
|
|
m.checkNotNullExpressionValue(view, "button");
|
|
|
|
Context context = view.getContext();
|
|
|
|
m.checkNotNullExpressionValue(context, "button.context");
|
|
|
|
Objects.requireNonNull(h);
|
|
|
|
m.checkNotNullParameter(context, "context");
|
|
|
|
ChannelSelector.Companion.getInstance().findAndSetDirectMessage(context, 643945264868098049L);
|
|
|
|
w.d viewState = h.getViewState();
|
|
|
|
if (viewState != null && (num = viewState.a) != null) {
|
|
|
|
RestAPIParams.UserInfo userInfo = new RestAPIParams.UserInfo(null, null, null, null, null, null, null, null, Integer.valueOf(num.intValue() & -8193), null, 767, null);
|
|
|
|
h.updateViewState(new w.d(viewState.a, true));
|
|
|
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(h.k.patchUser(userInfo), false, 1, null), h, null, 2, null), w.class, (Context) null, (Function1) null, new y(h), (Function0) null, (Function0) null, new x(h), 54, (Object) null);
|
|
|
|
}
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|