Store receipt fields as booleans instead of counts.

This commit is contained in:
Greyson Parrelli
2023-11-14 09:16:56 -08:00
parent 5e70c06075
commit e80b7cf0a2
24 changed files with 275 additions and 213 deletions

View File

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