discord-jadx/app/src/main/java/com/discord/widgets/channels/threads/browser/WidgetThreadBrowserActiveVi...

30 lines
1.5 KiB
Java

package com.discord.widgets.channels.threads.browser;
import com.discord.api.channel.Channel;
import com.discord.stores.StoreThreadsActiveJoined;
import d0.t.g0;
import d0.z.d.m;
import j0.k.b;
import java.util.LinkedHashMap;
import java.util.Map;
/* compiled from: WidgetThreadBrowserActiveViewModel.kt */
public final class WidgetThreadBrowserActiveViewModel$Companion$observeStoreState$1<T, R> implements b<Map<Long, ? extends StoreThreadsActiveJoined.ActiveJoinedThread>, Map<Long, ? extends Channel>> {
public static final WidgetThreadBrowserActiveViewModel$Companion$observeStoreState$1 INSTANCE = new WidgetThreadBrowserActiveViewModel$Companion$observeStoreState$1();
/* 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 // j0.k.b
public /* bridge */ /* synthetic */ Map<Long, ? extends Channel> call(Map<Long, ? extends StoreThreadsActiveJoined.ActiveJoinedThread> map) {
return call((Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread>) map);
}
public final Map<Long, Channel> call(Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread> map) {
m.checkNotNullExpressionValue(map, "threadMap");
LinkedHashMap linkedHashMap = new LinkedHashMap(g0.mapCapacity(map.size()));
for (T t : map.entrySet()) {
linkedHashMap.put(t.getKey(), ((StoreThreadsActiveJoined.ActiveJoinedThread) t.getValue()).getChannel());
}
return linkedHashMap;
}
}