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: migration: Set bcc_self=1 if it's unset and delete_server_after!=1 (#6432) #6437

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Jan 14, 2025

…=1 (#6432)

Users report that in a setup with Android (1.50.4 from F-Droid) and Desktop (1.48.0 x86_64 .deb
release) and chatmail account `bcc_self` was reverted to 0 on Android, resulting in messages sent
from Android not appearing on Desktop. This might happen because of the bug in migration #127, it
doesn't handle `delete_server_after` > 1. Existing chatmail configurations having
`delete_server_after` != 1 ("delete at once") should get `bcc_self` enabled, they may be multidevice
configurations:
- Before migration #127, `delete_server_after` was set to 0 upon a backup export, but
  then `bcc_self` is enabled instead (whose default is changed to 0 for chatmail).
- The user might set `delete_server_after` to a value other than 0 or 1 when that was
  possible in UIs.
So let's add another migration fixing this. But still don't check `is_chatmail` for simplicity.
@iequidoo iequidoo marked this pull request as ready for review January 14, 2025 06:06
@iequidoo iequidoo requested review from link2xt and Hocuri January 14, 2025 06:06
Copy link
Collaborator

@Hocuri Hocuri left a comment

Choose a reason for hiding this comment

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

Looks good!

@iequidoo iequidoo merged commit 53572fc into main Jan 15, 2025
36 checks passed
@iequidoo iequidoo deleted the iequidoo/0-bcc_self-for-chatmail branch January 15, 2025 03:27
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.

2 participants