Disambiguate between types of receipts when stored in the same map

This commit is contained in:
trevor-signal
2023-11-20 16:25:49 -05:00
committed by GitHub
parent be5ac3a1e0
commit 3c12a0aad0
4 changed files with 15 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ function remove(sync: ViewSyncAttributesType): void {
generateCacheKey({
sender: sync.senderId,
timestamp: sync.timestamp,
type: 'viewsync',
})
);
sync.removeFromMessageReceiverCache();
@@ -78,6 +79,7 @@ export async function onSync(sync: ViewSyncAttributesType): Promise<void> {
generateCacheKey({
sender: sync.senderId,
timestamp: sync.timestamp,
type: 'viewsync',
}),
sync
);