Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The same version of the card must be sent only one time #1127

Merged
merged 7 commits into from
Apr 5, 2024

Conversation

FadhlanR
Copy link
Contributor

@FadhlanR FadhlanR commented Mar 29, 2024

Ticket: CS-6578

The PR aims to prevent redundant card fragment events in a conversation by ensuring that the same version of a card is sent only once. This is achieved by introducing a new map in the room module, which maps the cardDoc to the eventId. This way, the sendCardFragments function is called only when there is no eventId for the attached cardDoc.

Copy link

github-actions bot commented Mar 29, 2024

Test Results

570 tests  +12   566 ✔️ +12   8m 20s ⏱️ +22s
    1 suites ±  0       4 💤 ±  0 
    1 files   ±  0       0 ±  0 

Results for commit 3986bec. ± Comparison against base commit 7a43d36.

♻️ This comment has been updated with latest results.

@FadhlanR FadhlanR requested a review from habdelra April 3, 2024 07:33
@@ -69,4 +70,5 @@ export function shimExternals(virtualNetwork: VirtualNetwork) {
virtualNetwork.shimModule('ember-source/types/preview', {
default: class {},
});
virtualNetwork.shimModule('super-fast-md5', superFastMD5);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@habdelra habdelra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

FadhlanR and others added 2 commits April 5, 2024 13:40
Co-authored-by: Luke Melia <[email protected]>
Co-authored-by: Luke Melia <[email protected]>
@FadhlanR FadhlanR merged commit 3b6fb8a into main Apr 5, 2024
22 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cs-6578-send-the-same-version-of-the-card-one-time branch April 5, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants