Fix issue preventing people blocking receipts from seeing incoming voice notes as viewed.
This commit is contained in:
parent
7833d7c99a
commit
fb08f8ae17
2 changed files with 6 additions and 3 deletions
|
@ -124,7 +124,7 @@ public class ConversationItemFooter extends LinearLayout {
|
||||||
revealDot.addValueCallback(
|
revealDot.addValueCallback(
|
||||||
new KeyPath("**"),
|
new KeyPath("**"),
|
||||||
LottieProperty.COLOR_FILTER,
|
LottieProperty.COLOR_FILTER,
|
||||||
frameInfo -> new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP)
|
frameInfo -> new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_IN)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2074,8 +2074,11 @@ public class MmsDatabase extends MessageDatabase {
|
||||||
int viewedReceiptCount = cursor.getInt(cursor.getColumnIndexOrThrow(MmsSmsColumns.VIEWED_RECEIPT_COUNT));
|
int viewedReceiptCount = cursor.getInt(cursor.getColumnIndexOrThrow(MmsSmsColumns.VIEWED_RECEIPT_COUNT));
|
||||||
|
|
||||||
if (!TextSecurePreferences.isReadReceiptsEnabled(context)) {
|
if (!TextSecurePreferences.isReadReceiptsEnabled(context)) {
|
||||||
readReceiptCount = 0;
|
readReceiptCount = 0;
|
||||||
viewedReceiptCount = 0;
|
|
||||||
|
if (MmsSmsColumns.Types.isOutgoingMessageType(box)) {
|
||||||
|
viewedReceiptCount = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Recipient recipient = Recipient.live(RecipientId.from(recipientId)).get();
|
Recipient recipient = Recipient.live(RecipientId.from(recipientId)).get();
|
||||||
|
|
Loading…
Add table
Reference in a new issue