示例#1
0
 private static boolean hasV1Session(Context context, CanonicalRecipient recipient) {
   return SessionRecordV1.hasSession(context, recipient)
       && RemoteKeyRecord.hasRecord(context, recipient)
       && LocalKeyRecord.hasRecord(context, recipient);
 }
示例#2
0
 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);
 }