discord-jadx/app/src/main/java/com/discord/stores/StoreChannelConversions.java

25 lines
781 B
Java

package com.discord.stores;
import com.discord.api.channel.Channel;
import com.discord.utilities.channel.ChannelSelector;
/* compiled from: StoreChannelConversions.kt */
public final class StoreChannelConversions extends StoreV2 {
private long selectedChannelId;
@StoreThread
public final void handleChannelCreateOrUpdate(Channel channel) {
if (channel != null) {
long h = channel.h();
long p = channel.p();
if (p != 0 && this.selectedChannelId == p) {
ChannelSelector.selectChannel$default(ChannelSelector.Companion.getInstance(), 0, h, null, null, 12, null);
}
}
}
@StoreThread
public final void handleChannelSelected(long j) {
this.selectedChannelId = j;
}
}