package com.tencent.mm.plugin.story.model.f;

import a.f.a.a;
import a.f.b.k;
import a.l;
import a.y;
import android.text.TextUtils;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.ro;
import com.tencent.mm.plugin.story.h.f;
import com.tencent.mm.plugin.story.h.g;
import com.tencent.mm.plugin.story.model.j;
import java.util.Map;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, dWq = {"<anonymous>", "", "invoke"})
final class a$i$a extends k implements a<y> {
    final /* synthetic */ ro rWW;

    a$i$a(ro roVar) {
        this.rWW = roVar;
        super(0);
    }

    public final /* synthetic */ Object invoke() {
        AppMethodBeat.i(109360);
        ro roVar = this.rWW;
        if (!((roVar != null ? roVar.cNw : null) == null || !this.rWW.cNw.cNx || TextUtils.isEmpty(this.rWW.cNw.username))) {
            a aVar = a.rWL;
            if (!a.aaK(this.rWW.cNw.username)) {
                if (this.rWW.cNw.cNz) {
                    j.a aVar2 = j.rST;
                    g cxU = j.a.cxU();
                    String str = this.rWW.cNw.username;
                    a.f.b.j.o(str, "event.data.username");
                    f aap = cxU.aap(str);
                    a aVar3 = a.rWL;
                    Map czo = a.czo();
                    a.f.b.j.o(czo, "userStateMap");
                    czo.put(this.rWW.cNw.username, aap);
                } else {
                    aVar = a.rWL;
                    a.czo().remove(this.rWW.cNw.username);
                }
                aVar = a.rWL;
                String str2 = this.rWW.cNw.username;
                a.f.b.j.o(str2, "event.data.username");
                a.aaJ(str2);
                aVar = a.rWL;
                a.czl();
            }
        }
        y yVar = y.AUy;
        AppMethodBeat.o(109360);
        return yVar;
    }
}
