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

fork-5.53.8
Alex Hart 2021-06-09 11:02:24 -03:00 zatwierdzone przez Greyson Parrelli
rodzic 7833d7c99a
commit fb08f8ae17
2 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -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)
);
}

Wyświetl plik

@ -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();