Skip to content

add group images #4905

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

Closed
wants to merge 2 commits into from
Closed

add group images #4905

wants to merge 2 commits into from

Conversation

r10s
Copy link
Contributor

@r10s r10s commented Nov 1, 2023

this pr adds a fallback group image if no group image is set, making groups and one-to-one-chats easier to distinguish, maybe mitigating confusions as of #4902 .

this is also what whatsapp is doing.

also it looks nicer imo :)

Screenshot 2023-11-01 at 21 08 07   Screenshot 2023-11-01 at 20 54 50

disadvantage is that different groups look more similar, however, this is probably a minor as one can easily set group images (whereas you cannot set images for other ppl and this is also not planned)

a minor technical issue is that you can no longer differ between "image not set" and "fallback image" - i checked recent UI, however, that also seems not to be needed currently - and if required, we can always add that.

resurrection a part of #2708

@r10s r10s force-pushed the nice-group-images branch 2 times, most recently from 2b71bbb to da0a5a1 Compare November 1, 2023 20:17
@r10s r10s requested a review from link2xt November 1, 2023 20:33
@r10s r10s changed the title nice group images add group images Nov 1, 2023
@r10s r10s requested a review from adbenitez November 1, 2023 20:45
@r10s r10s marked this pull request as ready for review November 1, 2023 20:46
@r10s r10s requested review from hpk42 and Simon-Laux November 1, 2023 20:46
@hpk42
Copy link
Contributor

hpk42 commented Nov 1, 2023

i'd be fine with trying this.

@r10s r10s force-pushed the nice-group-images branch from da0a5a1 to f7c90d6 Compare November 1, 2023 20:54
@Simon-Laux
Copy link
Contributor

Simon-Laux commented Nov 1, 2023

what about people using emojis for their group avatars?:
Bildschirmfoto 2023-11-01 um 21 59 38
Bildschirmfoto 2023-11-01 um 22 00 09

this is also what whatsapp is doing.

WhatsApp also does it for contacts, so not exactly what WhatsApp is doing.

@r10s
Copy link
Contributor Author

r10s commented Nov 1, 2023

WhatsApp also does it for contacts, so not exactly what WhatsApp is doing.

well, what whatsapp is doing for group images then :)

for emoji-avatars: this is a hack anyways, coming a bit from times where we did not had avatars. the emoji is still visible in the title - and ppl can always use an image.

the gist of this issue, to better distinguish between groups and one-to-ones, while not cluttering UI with additional states and elements, i think this rules some emoji-hacks

@r10s
Copy link
Contributor Author

r10s commented Nov 1, 2023

i do not know, if emoji-avatars are really a thing, i would be for closing and not merging. all in all +0.1 :) but i do not really care - i closed the old pr for reasons of not having incredible discussions :)

link2xt
link2xt previously approved these changes Nov 1, 2023
@Simon-Laux
Copy link
Contributor

I would rather do this icon thing in the UI instead of the letter.
Also I would prefer if the emoji trick would continue to work.

we could implement a detection algorithm in nom based on the emoji unicode ranges that can be found in the regex we use in desktop:

https://github.com/deltachat/deltachat-desktop/blob/559b5d87b9679924ecd2762b0fc841b675d9e154/src/renderer/components/conversations/emoji.ts#L61-L62

@link2xt
Copy link
Collaborator

link2xt commented Nov 1, 2023

in nom

Why would you need nom to detect if the first letter is emoji?

regex crate can match \p{Emoji} unicode class. This is still tricky because of EMOJI_MODIFIER etc. tables which are in regex-syntax crate.

@link2xt link2xt dismissed their stale review November 1, 2023 22:59

Tests don't pass, need new API

@link2xt
Copy link
Collaborator

link2xt commented Nov 1, 2023

This still needs an API to tell if the avatar can be deleted or not.

@Raiden-GH
Copy link

What if users could choose whether to use an image, a letter, or an emoji, like in macOS? As long as the programming effort isn't too much.

@link2xt link2xt closed this Nov 2, 2023
Hocuri added a commit that referenced this pull request Jun 17, 2025
It was buggy because it was possible to "remove" the default profile
icon in the UI

See also #4905 where r10s wanted to
add a default image for groups, but which was closed.
Hocuri added a commit that referenced this pull request Jun 17, 2025
It was buggy because it was possible to "remove" the default profile
icon in the UI

See also #4905 where r10s wanted to
add a default image for groups, but which was closed.
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.

5 participants