Disambiguate between types of receipts when stored in the same map
This commit is contained in:
parent
be5ac3a1e0
commit
3c12a0aad0
4 changed files with 15 additions and 1 deletions
|
@ -83,6 +83,7 @@ function remove(receipt: MessageReceiptAttributesType): void {
|
|||
generateCacheKey({
|
||||
sender: receipt.sourceServiceId,
|
||||
timestamp: receipt.messageSentAt,
|
||||
type: receipt.type,
|
||||
})
|
||||
);
|
||||
receipt.removeFromMessageReceiverCache();
|
||||
|
@ -351,6 +352,7 @@ export async function onReceipt(
|
|||
generateCacheKey({
|
||||
sender: receipt.sourceServiceId,
|
||||
timestamp: receipt.messageSentAt,
|
||||
type: receipt.type,
|
||||
}),
|
||||
receipt
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue