package com.tencent.mm.plugin.setting;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.bf;
import com.tencent.mm.n.a;
import com.tencent.mm.plugin.messenger.foundation.a.j;
import com.tencent.mm.sdk.e.n;
import com.tencent.mm.sdk.e.n.b;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.storage.ad;
import com.tencent.mm.storage.bi;

class c$1 implements b {
    final /* synthetic */ c qjz;

    c$1(c cVar) {
        this.qjz = cVar;
    }

    public final void a(int i, n nVar, Object obj) {
        AppMethodBeat.i(126825);
        if (i == 2) {
            final String str = (String) obj;
            ad aoI = ((j) g.K(j.class)).XM().aoI(str);
            if (!(aoI == null || a.jh(aoI.field_type) || !aoI.NY() || aoI.NZ())) {
                g.RS().m(new Runnable() {
                    public final void run() {
                        AppMethodBeat.i(126824);
                        ad aoO = ((j) g.K(j.class)).XM().aoO(str);
                        if (!(aoO == null || a.jh(aoO.field_type) || !aoO.NY() || aoO.NZ())) {
                            bi biVar = new bi();
                            biVar.hO(0);
                            biVar.ju(str);
                            biVar.setStatus(6);
                            biVar.setContent(ah.getContext().getString(2131303114));
                            biVar.eJ(bf.q(str, System.currentTimeMillis() / 1000));
                            biVar.setType(10000);
                            ((j) g.K(j.class)).bOr().Z(biVar);
                            ab.i("MicroMsg.SubCoreSetting", "insert chatcontact verify sysmsg. %s", new Object[]{str});
                        }
                        AppMethodBeat.o(126824);
                    }
                }, 5000);
            }
        }
        AppMethodBeat.o(126825);
    }
}
