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
|
@ -33,6 +33,7 @@ function remove(sync: ReadSyncAttributesType): void {
|
|||
generateCacheKey({
|
||||
sender: sync.senderId,
|
||||
timestamp: sync.timestamp,
|
||||
type: 'readsync',
|
||||
})
|
||||
);
|
||||
sync.removeFromMessageReceiverCache();
|
||||
|
@ -109,6 +110,7 @@ export async function onSync(sync: ReadSyncAttributesType): Promise<void> {
|
|||
generateCacheKey({
|
||||
sender: sync.senderId,
|
||||
timestamp: sync.timestamp,
|
||||
type: 'readsync',
|
||||
}),
|
||||
sync
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue