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

import a.f.a.a;
import a.f.b.k;
import a.l;
import a.v;
import a.y;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ab.b;
import com.tencent.mm.plugin.story.h.j;
import com.tencent.mm.sdk.e.m;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.HashMap;

@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$g extends k implements a<y> {
    final /* synthetic */ m rWT;

    a$g(m mVar) {
        this.rWT = mVar;
        super(0);
    }

    public final /* synthetic */ Object invoke() {
        AppMethodBeat.i(138781);
        Object obj = this.rWT.obj;
        v vVar;
        if (obj == null) {
            vVar = new v("null cannot be cast to non-null type com.tencent.mm.plugin.story.storage.StoryInfo");
            AppMethodBeat.o(138781);
            throw vVar;
        }
        String str = ((j) obj).field_userName;
        obj = this.rWT.obj;
        if (obj == null) {
            vVar = new v("null cannot be cast to non-null type com.tencent.mm.plugin.story.storage.StoryInfo");
            AppMethodBeat.o(138781);
            throw vVar;
        }
        HashMap hashMap;
        long j = ((j) obj).field_storyID;
        a aVar = a.rWL;
        ab.i(a.czj(), "[StoryInfo] onNotifyChange: " + str + ' ' + j);
        aVar = a.rWL;
        c cVar = (c) a.czq().get(str);
        if (cVar != null) {
            hashMap = cVar.rXi;
        } else {
            hashMap = null;
        }
        if (hashMap != null) {
            hashMap.remove(Long.valueOf(j));
            if (hashMap.isEmpty()) {
                aVar = a.rWL;
                a.czq().remove(str);
            }
        }
        aVar = a.rWL;
        a.czk();
        b.a((a) 1.rWU);
        y yVar = y.AUy;
        AppMethodBeat.o(138781);
        return yVar;
    }
}
