48 lines
2.4 KiB
Java
48 lines
2.4 KiB
Java
package com.discord.widgets.settings.account;
|
|
|
|
import com.discord.models.user.User;
|
|
import com.discord.stores.StoreUser;
|
|
import com.discord.widgets.settings.account.WidgetSettingsBlockedUsersViewModel;
|
|
import d0.z.d.m;
|
|
import j0.k.b;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
import rx.Observable;
|
|
/* compiled from: WidgetSettingsBlockedUsersViewModel.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class WidgetSettingsBlockedUsersViewModel$Companion$observeStores$1<T, R> implements b<Map<Long, ? extends Integer>, Observable<? extends WidgetSettingsBlockedUsersViewModel.StoreState>> {
|
|
public final /* synthetic */ StoreUser $storeUser;
|
|
|
|
/* compiled from: WidgetSettingsBlockedUsersViewModel.kt */
|
|
/* renamed from: com.discord.widgets.settings.account.WidgetSettingsBlockedUsersViewModel$Companion$observeStores$1$1 reason: invalid class name */
|
|
/* loaded from: classes2.dex */
|
|
public static final class AnonymousClass1<T, R> implements b<Map<Long, ? extends User>, WidgetSettingsBlockedUsersViewModel.StoreState> {
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
public final WidgetSettingsBlockedUsersViewModel.StoreState call(Map<Long, ? extends User> map) {
|
|
m.checkNotNullExpressionValue(map, "users");
|
|
return new WidgetSettingsBlockedUsersViewModel.StoreState(map);
|
|
}
|
|
}
|
|
|
|
public WidgetSettingsBlockedUsersViewModel$Companion$observeStores$1(StoreUser storeUser) {
|
|
this.$storeUser = storeUser;
|
|
}
|
|
|
|
@Override // j0.k.b
|
|
public /* bridge */ /* synthetic */ Observable<? extends WidgetSettingsBlockedUsersViewModel.StoreState> call(Map<Long, ? extends Integer> map) {
|
|
return call2((Map<Long, Integer>) map);
|
|
}
|
|
|
|
/* renamed from: call reason: avoid collision after fix types in other method */
|
|
public final Observable<? extends WidgetSettingsBlockedUsersViewModel.StoreState> call2(Map<Long, Integer> map) {
|
|
m.checkNotNullExpressionValue(map, "relationships");
|
|
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
|
for (Map.Entry<Long, Integer> entry : map.entrySet()) {
|
|
if (entry.getValue().intValue() == 2) {
|
|
linkedHashMap.put(entry.getKey(), entry.getValue());
|
|
}
|
|
}
|
|
return (Observable<R>) this.$storeUser.observeUsers(linkedHashMap.keySet()).G(AnonymousClass1.INSTANCE);
|
|
}
|
|
}
|