mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Store receipt fields as booleans instead of counts.
This commit is contained in:
@@ -158,8 +158,8 @@ public final class MessageDetailsRepository {
|
||||
}
|
||||
|
||||
private @NonNull RecipientDeliveryStatus.Status getStatusFor(MessageRecord messageRecord) {
|
||||
if (messageRecord.isRemoteViewed()) return RecipientDeliveryStatus.Status.VIEWED;
|
||||
if (messageRecord.isRemoteRead()) return RecipientDeliveryStatus.Status.READ;
|
||||
if (messageRecord.isViewed()) return RecipientDeliveryStatus.Status.VIEWED;
|
||||
if (messageRecord.hasReadReceipt()) return RecipientDeliveryStatus.Status.READ;
|
||||
if (messageRecord.isDelivered()) return RecipientDeliveryStatus.Status.DELIVERED;
|
||||
if (messageRecord.isSent()) return RecipientDeliveryStatus.Status.SENT;
|
||||
if (messageRecord.isPending()) return RecipientDeliveryStatus.Status.PENDING;
|
||||
|
||||
Reference in New Issue
Block a user