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

Fix a race condition when sending multiple images. #6536

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Aug 4, 2022

There was a race condition when sending multiple images in the share extension, where the sendPendingImages block could be called multiple times. This was because the items were marked as loaded on a different thread to the completion handler.

Fixes #5922.

@pixlwave pixlwave requested review from a team and ismailgulek and removed request for a team August 4, 2022 16:23
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@ismailgulek ismailgulek left a comment

Choose a reason for hiding this comment

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

LGTM!

@codecov-commenter
Copy link

Codecov Report

Merging #6536 (1ae1baf) into develop (b771304) will increase coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #6536      +/-   ##
===========================================
+ Coverage     6.21%    6.24%   +0.03%     
===========================================
  Files         1462     1462              
  Lines       157180   157177       -3     
  Branches     63163    63163              
===========================================
+ Hits          9765     9816      +51     
+ Misses      147006   146949      -57     
- Partials       409      412       +3     
Impacted Files Coverage Δ
...dules/Room/EmojiPicker/Data/Store/EmojiStore.swift 88.37% <0.00%> (-4.66%) ⬇️
...ojiPicker/Data/EmojiMart/EmojiItem+EmojiMart.swift 95.34% <0.00%> (-0.31%) ⬇️
...xKit/Controllers/MXKAuthenticationViewController.m 19.01% <0.00%> (ø)
Riot/Modules/Application/LegacyAppDelegate.m 13.67% <0.00%> (+0.33%) ⬆️
...rs/EncryptionKeyManager/EncryptionKeyManager.swift 39.58% <0.00%> (+4.16%) ⬆️
Riot/Managers/Call/CallPresenter.swift 6.21% <0.00%> (+5.13%) ⬆️
Config/CommonConfiguration.swift 90.90% <0.00%> (+5.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions
Copy link

github-actions bot commented Aug 4, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/fot8J4

@pixlwave pixlwave merged commit c2204fd into develop Aug 5, 2022
@pixlwave pixlwave deleted the doug/5922-duplicate-images branch August 5, 2022 07:29
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.

Duplicate photos in timeline when sharing from the Photos App
3 participants