discord-jadx/app/src/main/java/com/discord/stores/StoreNotifications$displayP...

43 lines
1.7 KiB
Java
Raw Normal View History

2021-06-27 20:44:35 +00:00
package com.discord.stores;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import com.discord.api.channel.Channel;
2021-07-03 23:36:06 +00:00
import com.discord.models.message.Message;
2021-06-27 20:44:35 +00:00
import com.discord.utilities.intent.IntentUtils;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreNotifications.kt */
public final class StoreNotifications$displayPopup$1 extends o implements Function1<View, Unit> {
public final /* synthetic */ Channel $channel;
2021-06-27 20:53:42 +00:00
public final /* synthetic */ Message $message;
2021-06-27 20:44:35 +00:00
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
2021-06-27 20:53:42 +00:00
public StoreNotifications$displayPopup$1(Channel channel, Message message) {
2021-06-27 20:44:35 +00:00
super(1);
this.$channel = channel;
2021-06-27 20:53:42 +00:00
this.$message = message;
2021-06-27 20:44:35 +00:00
}
/* 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");
2021-07-03 23:36:06 +00:00
Intent selectChannel = IntentUtils.RouteBuilders.selectChannel(this.$channel.h(), this.$channel.f(), Long.valueOf(this.$message.getId()));
2021-06-27 20:44:35 +00:00
selectChannel.putExtra("com.discord.intent.ORIGIN_SOURCE", "com.discord.intent.ORIGIN_NOTIF_INAPP");
IntentUtils intentUtils = IntentUtils.INSTANCE;
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "view.context");
intentUtils.consumeExternalRoutingIntent(selectChannel, context);
}
}