53 lines
2.4 KiB
Java
53 lines
2.4 KiB
Java
package com.discord.stores;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.stores.StoreMessagesLoader;
|
|
import com.discord.utilities.channel.ChannelSelector;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: StoreMessagesLoader.kt */
|
|
public final class StoreMessagesLoader$jumpToMessage$2 extends o implements Function1<Channel, Unit> {
|
|
public final /* synthetic */ long $channelId;
|
|
public final /* synthetic */ StoreMessagesLoader this$0;
|
|
|
|
/* compiled from: StoreMessagesLoader.kt */
|
|
/* renamed from: com.discord.stores.StoreMessagesLoader$jumpToMessage$2$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<StoreMessagesLoader.ChannelLoadedState, StoreMessagesLoader.ChannelLoadedState> {
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
public AnonymousClass1() {
|
|
super(1);
|
|
}
|
|
|
|
public final StoreMessagesLoader.ChannelLoadedState invoke(StoreMessagesLoader.ChannelLoadedState channelLoadedState) {
|
|
m.checkNotNullParameter(channelLoadedState, "it");
|
|
return StoreMessagesLoader.ChannelLoadedState.copy$default(channelLoadedState, true, false, false, false, null, 30, null);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreMessagesLoader$jumpToMessage$2(StoreMessagesLoader storeMessagesLoader, long j) {
|
|
super(1);
|
|
this.this$0 = storeMessagesLoader;
|
|
this.$channelId = 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(Channel channel) {
|
|
invoke(channel);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final synchronized void invoke(Channel channel) {
|
|
m.checkNotNullParameter(channel, "channel");
|
|
if (channel.h() != StoreMessagesLoader.access$getSelectedChannelId$p(this.this$0)) {
|
|
StoreMessagesLoader.access$channelLoadedStateUpdate(this.this$0, this.$channelId, AnonymousClass1.INSTANCE);
|
|
ChannelSelector.selectChannel$default(ChannelSelector.Companion.getInstance(), channel, null, null, 6, null);
|
|
}
|
|
}
|
|
}
|