package com.tencent.mm.plugin.f;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.ch;
import com.tencent.mm.plugin.f.b.3;
import com.tencent.mm.plugin.f.b.b;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.ytcommon.BuildConfig;

class b$3$1 implements Runnable {
    final /* synthetic */ ch kab;
    final /* synthetic */ 3 kac;

    b$3$1(3 3, ch chVar) {
        this.kac = 3;
        this.kab = chVar;
    }

    public final void run() {
        AppMethodBeat.i(18576);
        if (this.kab == null) {
            AppMethodBeat.o(18576);
        } else if (bo.isNullOrNil(this.kab.cvw.talker)) {
            AppMethodBeat.o(18576);
        } else {
            try {
                b aZd = b.aZc().aZd();
                long j = this.kab.cvw.cvx;
                String str = this.kab.cvw.talker;
                int i = this.kab.cvw.msgType;
                String[] strArr = new String[]{String.valueOf(j), String.valueOf(i), str};
                int delete = aZd.bSd.delete("WxFileIndex2", "msgId=? AND msgType=? AND username=? ", strArr);
                ab.i("MicroMsg.WxFileIndexStorage", "delete by msg [%d %d %s] result[%d]", new Object[]{Long.valueOf(j), Integer.valueOf(i), str, Integer.valueOf(delete)});
                AppMethodBeat.o(18576);
            } catch (Exception e) {
                ab.printErrStackTrace("MicroMsg.CalcWxService", e, BuildConfig.FLAVOR, new Object[0]);
                h.pYm.a(664, 6, 1, false);
                AppMethodBeat.o(18576);
            }
        }
    }
}
