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

Show avatar for vCards (#2167) #2187

Merged
merged 9 commits into from
Jun 5, 2024
Merged

Show avatar for vCards (#2167) #2187

merged 9 commits into from
Jun 5, 2024

Conversation

zeitschlag
Copy link
Collaborator

@zeitschlag zeitschlag commented May 30, 2024

This PR improves vCard-UI in chats by adding a dedicated view and cell. The result looks pretty similar to when sending files, but instead of the icon, you see an image (if the vCard contains an image) or the initials with a background color (aka InitialsBadge, also used elsewhere. For privacy reasons the screenshot below has been edited)

Simulator Screenshot - iPhone 15 Pro - 2024-06-04 at 15 06 36

@r10s
Copy link
Member

r10s commented Jun 1, 2024

did a quick functionality test - very nice so far!

the only thing that i recognised so far, is that we do not want to have person.crop.circle (sorry, once again not :) or so as a fallback - but the user's color and the first letter of the displayname (both are returned by parseVcard()) - see eg. the normal contact list (from which we should share the corresponding code ideally)

this is how it looks like on android:

@zeitschlag zeitschlag marked this pull request as ready for review June 4, 2024 13:43
@zeitschlag zeitschlag changed the title [WIP] Vcard-UI Show avatar for vCards (#2167) Jun 4, 2024
@zeitschlag zeitschlag requested a review from r10s June 4, 2024 13:43
Copy link
Member

@r10s r10s left a comment

Choose a reason for hiding this comment

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

very nice, good looking and does what it should :)

some minor comments only

@zeitschlag zeitschlag merged commit 8e7ac81 into main Jun 5, 2024
1 check passed
@zeitschlag zeitschlag deleted the 2167-vcard-ui branch June 5, 2024 13:56
@zeitschlag zeitschlag mentioned this pull request Jun 5, 2024
8 tasks
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.

None yet

2 participants