25 lines
781 B
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 g = channel.g();
|
|
long o = channel.o();
|
|
if (o != 0 && this.selectedChannelId == o) {
|
|
ChannelSelector.selectChannel$default(ChannelSelector.Companion.getInstance(), 0, g, null, null, 12, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
@StoreThread
|
|
public final void handleChannelSelected(long j) {
|
|
this.selectedChannelId = j;
|
|
}
|
|
}
|