56 lines
2.6 KiB
Java
56 lines
2.6 KiB
Java
package com.discord.stores;
|
|
|
|
import com.discord.models.message.Message;
|
|
import com.discord.stores.StoreMessagesLoader;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import rx.subjects.SerializedSubject;
|
|
/* compiled from: StoreMessagesLoader.kt */
|
|
public final class StoreMessagesLoader$jumpToMessage$1 extends o implements Function1<Message, Unit> {
|
|
public final /* synthetic */ long $channelId;
|
|
public final /* synthetic */ long $messageId;
|
|
public final /* synthetic */ StoreMessagesLoader this$0;
|
|
|
|
/* compiled from: StoreMessagesLoader.kt */
|
|
/* renamed from: com.discord.stores.StoreMessagesLoader$jumpToMessage$1$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, false, false, false, false, null, 29, null);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreMessagesLoader$jumpToMessage$1(StoreMessagesLoader storeMessagesLoader, long j, long j2) {
|
|
super(1);
|
|
this.this$0 = storeMessagesLoader;
|
|
this.$channelId = j;
|
|
this.$messageId = j2;
|
|
}
|
|
|
|
/* 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(Message message) {
|
|
invoke(message);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final synchronized void invoke(Message message) {
|
|
if (message != null) {
|
|
SerializedSubject access$getScrollToSubject$p = StoreMessagesLoader.access$getScrollToSubject$p(this.this$0);
|
|
access$getScrollToSubject$p.j.onNext(Long.valueOf(message.getId()));
|
|
} else {
|
|
StoreMessagesLoader.access$channelLoadedStateUpdate(this.this$0, this.$channelId, AnonymousClass1.INSTANCE);
|
|
StoreMessagesLoader.tryLoadMessages$default(this.this$0, 0, true, false, false, Long.valueOf(this.$channelId), Long.valueOf(this.$messageId), 9, null);
|
|
}
|
|
}
|
|
}
|