discord-jadx/app/src/main/java/com/discord/stores/StoreEmojiCustom$updateAllo...

47 lines
1.8 KiB
Java

package com.discord.stores;
import com.discord.models.domain.emoji.ModelEmojiCustom;
import d0.z.d.m;
import d0.z.d.o;
import java.util.HashMap;
import java.util.Map;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
/* compiled from: StoreEmojiCustom.kt */
public final class StoreEmojiCustom$updateAllowedGuildEmojis$1 extends o implements Function2<Long, ModelEmojiCustom, Unit> {
public final /* synthetic */ Map $allowed;
public final /* synthetic */ StoreEmojiCustom this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreEmojiCustom$updateAllowedGuildEmojis$1(StoreEmojiCustom storeEmojiCustom, Map map) {
super(2);
this.this$0 = storeEmojiCustom;
this.$allowed = map;
}
/* 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, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public /* bridge */ /* synthetic */ Unit invoke(Long l, ModelEmojiCustom modelEmojiCustom) {
invoke(l.longValue(), modelEmojiCustom);
return Unit.a;
}
public final void invoke(long j, ModelEmojiCustom modelEmojiCustom) {
m.checkNotNullParameter(modelEmojiCustom, "emoji");
Map map = this.$allowed;
Long valueOf = Long.valueOf(j);
Object obj = map.get(valueOf);
if (obj == null) {
obj = new HashMap();
map.put(valueOf, obj);
}
Map map2 = (Map) obj;
long id2 = modelEmojiCustom.getId();
if (!m.areEqual(modelEmojiCustom, (ModelEmojiCustom) map2.get(Long.valueOf(id2)))) {
map2.put(Long.valueOf(id2), modelEmojiCustom);
this.this$0.markChanged();
}
}
}