Show "unplayed" dot on outgoing audio messages

This commit is contained in:
Evan Hahn
2021-07-27 10:42:25 -05:00
committed by GitHub
parent b73c029d5f
commit 14929fb408
16 changed files with 219 additions and 60 deletions

View File

@@ -21,6 +21,7 @@ const { deleteSentProtoRecipient } = dataInterface;
export enum MessageReceiptType {
Delivery = 'Delivery',
Read = 'Read',
View = 'View',
}
type MessageReceiptAttributesType = {
@@ -151,6 +152,9 @@ export class MessageReceipts extends Collection<MessageReceiptModel> {
case MessageReceiptType.Read:
sendActionType = SendActionType.GotReadReceipt;
break;
case MessageReceiptType.View:
sendActionType = SendActionType.GotViewedReceipt;
break;
default:
throw missingCaseError(type);
}