Fix issue preventing people blocking receipts from seeing incoming voice notes as viewed.

This commit is contained in:
Alex Hart 2021-06-09 11:02:24 -03:00 committed by Greyson Parrelli
parent 7833d7c99a
commit fb08f8ae17
2 changed files with 6 additions and 3 deletions

View file

@ -124,7 +124,7 @@ public class ConversationItemFooter extends LinearLayout {
revealDot.addValueCallback(
new KeyPath("**"),
LottieProperty.COLOR_FILTER,
frameInfo -> new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP)
frameInfo -> new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_IN)
);
}

View file

@ -2074,8 +2074,11 @@ public class MmsDatabase extends MessageDatabase {
int viewedReceiptCount = cursor.getInt(cursor.getColumnIndexOrThrow(MmsSmsColumns.VIEWED_RECEIPT_COUNT));
if (!TextSecurePreferences.isReadReceiptsEnabled(context)) {
readReceiptCount = 0;
viewedReceiptCount = 0;
readReceiptCount = 0;
if (MmsSmsColumns.Types.isOutgoingMessageType(box)) {
viewedReceiptCount = 0;
}
}
Recipient recipient = Recipient.live(RecipientId.from(recipientId)).get();