package com.discord.stores; import com.discord.api.activity.Activity; import com.discord.api.activity.ActivityType; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: StoreStageChannelSelfPresence.kt */ public final class StoreStageChannelSelfPresence$init$3 extends o implements Function1 { public final /* synthetic */ StoreStageChannelSelfPresence this$0; /* compiled from: StoreStageChannelSelfPresence.kt */ /* renamed from: com.discord.stores.StoreStageChannelSelfPresence$init$3$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ Boolean $showCurrentActivity; public final /* synthetic */ StoreStageChannelSelfPresence$init$3 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreStageChannelSelfPresence$init$3 storeStageChannelSelfPresence$init$3, Boolean bool) { super(0); this.this$0 = storeStageChannelSelfPresence$init$3; this.$showCurrentActivity = bool; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { StoreUserPresence userPresence = this.this$0.this$0.getUserPresence(); ActivityType activityType = ActivityType.LISTENING; Activity stageChannelActivity = this.this$0.this$0.getStageChannelActivity(); Boolean bool = this.$showCurrentActivity; m.checkNotNullExpressionValue(bool, "showCurrentActivity"); if (!bool.booleanValue()) { stageChannelActivity = null; } userPresence.updateActivity(activityType, stageChannelActivity, true); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreStageChannelSelfPresence$init$3(StoreStageChannelSelfPresence storeStageChannelSelfPresence) { super(1); this.this$0 = storeStageChannelSelfPresence; } /* 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 // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Boolean bool) { invoke(bool); return Unit.a; } public final void invoke(Boolean bool) { this.this$0.getDispatcher().schedule(new AnonymousClass1(this, bool)); } }