private static boolean hasV1Session(Context context, CanonicalRecipient recipient) { return SessionRecordV1.hasSession(context, recipient) && RemoteKeyRecord.hasRecord(context, recipient) && LocalKeyRecord.hasRecord(context, recipient); }
public static void clearV1SessionFor(Context context, CanonicalRecipient recipient) { // XXX Obviously we should probably do something more thorough here eventually. LocalKeyRecord.delete(context, recipient); RemoteKeyRecord.delete(context, recipient); SessionRecordV1.delete(context, recipient); }