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

vcard should only have 1 photo field when adding/removing photos #1918

Merged
merged 1 commit into from
Nov 7, 2020

Conversation

eleith
Copy link
Member

@eleith eleith commented Nov 7, 2020

when adding photo fields through the social api service, an extra photo
field is created for vcard version 3.0 due to setting a field as empty
instead of unsetting it all together

when removing photo fields, this empty photo field is left untouched

thus, syncing photos to address book clients can be buggy as most
address book clients do not properly iterate through all photo fields to
display the contact photo

closes: #1820

when adding photo fields through the social api service, an extra photo
field is created for vcard version 3.0 due to setting a field as empty
instead of unsetting it all together

when removing photo fields, this empty photo field is left untouched

thus, syncing photos to address book clients can be buggy as most
address book clients do not properly iterate through all photo fields to
display the contact photo

Signed-off-by: leith abdulla <online-nextcloud@eleith.com>
@eleith eleith force-pushed the double-photo-fields branch from f653a3c to 3d6bcd3 Compare November 7, 2020 16:13
@codecov
Copy link

codecov bot commented Nov 7, 2020

Codecov Report

Merging #1918 (7f2c081) into master (e1f1a0e) will increase coverage by 0.57%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1918      +/-   ##
============================================
+ Coverage     66.85%   67.43%   +0.57%     
  Complexity      249      249              
============================================
  Files            22       22              
  Lines           691      691              
============================================
+ Hits            462      466       +4     
+ Misses          229      225       -4     
Impacted Files Coverage Δ Complexity Δ
lib/Service/SocialApiService.php 91.09% <100.00%> (+2.73%) 55.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1f1a0e...3d6bcd3. Read the comment docs.

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

That makes total sense!
And with tests too? 😍 Yes please! 🤗

@skjnldsv skjnldsv added 3. to review Waiting for reviews bug Something isn't working labels Nov 7, 2020
@skjnldsv skjnldsv added this to the next milestone Nov 7, 2020
@eleith eleith merged commit 8d3085c into nextcloud:master Nov 7, 2020
@eleith eleith deleted the double-photo-fields branch November 7, 2020 16:20
@skjnldsv skjnldsv removed this from the next milestone Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Picture uploded in Web GUI are not synchronized anymore in Android with DAVx5 3.3.1-ose with contacts 3.4.0
2 participants