use of org.thoughtcrime.securesms.database.documents.IdentityKeyMismatchList in project Signal-Android by WhisperSystems.
the class MessagingDatabase method setMismatchedIdentity.
public void setMismatchedIdentity(long messageId, final long recipientId, final IdentityKey identityKey) {
List<IdentityKeyMismatch> items = new ArrayList<IdentityKeyMismatch>() {
{
add(new IdentityKeyMismatch(recipientId, identityKey));
}
};
IdentityKeyMismatchList document = new IdentityKeyMismatchList(items);
SQLiteDatabase database = databaseHelper.getWritableDatabase();
database.beginTransaction();
try {
setDocument(database, messageId, MISMATCHED_IDENTITIES, document);
database.setTransactionSuccessful();
} catch (IOException ioe) {
Log.w(TAG, ioe);
} finally {
database.endTransaction();
}
}
Aggregations