use of org.thoughtcrime.securesms.database.MessagingDatabase.SyncMessageId in project Signal-Android by signalapp.
the class PushDecryptJob method handleDeliveryReceipt.
private void handleDeliveryReceipt(@NonNull SignalServiceEnvelope envelope, @NonNull SignalServiceReceiptMessage message) {
for (long timestamp : message.getTimestamps()) {
Log.w(TAG, String.format("Received encrypted delivery receipt: (XXXXX, %d)", timestamp));
DatabaseFactory.getMmsSmsDatabase(context).incrementDeliveryReceiptCount(new SyncMessageId(Address.fromExternal(context, envelope.getSource()), timestamp), System.currentTimeMillis());
}
}
Aggregations