Skip to content

handle classic emails as such only in classic profiles #6767

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

Merged
merged 2 commits into from
Apr 4, 2025

Conversation

r10s
Copy link
Contributor

@r10s r10s commented Apr 3, 2025

next android/desktop/ios releases won't have the "Show Classic Emails" option for chatmail.

to avoid issues with user that have set sth else than "All", we ignore the option alltogether for chatmail profiles.

ftr, i do not expect ppl having that option changed for chatmail much, it does not make much sense. so this PR is mainly to save our limited support resources :) (usecase: "look, i am using chatmail to sign up at SERVICE, but for security reasons i set show=all only when i reset my password" :)

one could also do that in a migration, however, (a) migrations always come with some risk, even the easiest ones, and (b) the show_emails option is subject to change or disappear anyways, subsequent changes are easier in code than in additional or removed migrations, and (c) it is really only one line, that does not add much with complexity

@r10s r10s requested review from link2xt, iequidoo and adbenitez April 3, 2025 22:16
@iequidoo
Copy link
Collaborator

iequidoo commented Apr 4, 2025

So, the difference between a non-chatmail configuration with ShowEmails::All and chatmail one is the && !is_reaction condition, i.e. reactions never create chats for chatmail. That's what i can't understand

@r10s
Copy link
Contributor Author

r10s commented Apr 4, 2025

i do not know as well. maybe a bug. or reactions are not expected from classic mail inpractise

but that question seems mostly unrelated

{
// this message is a classic email not a chat-message nor a reply to one
// the message is a classic email in a classic profile
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be nice to comment on the reasoning here. Something along the lines of (in chatmail profiles, we always show all messages, because shared dc-mua usage is not supported)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i added the line.

at some point, we should really think about dropping these shared-usage-options alltogether ...

@r10s r10s enabled auto-merge (squash) April 4, 2025 09:58
@r10s r10s merged commit cfaa8ce into main Apr 4, 2025
29 checks passed
@r10s r10s deleted the r10s/fix-show-emails branch April 4, 2025 10:20
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