Repository navigation
Conversation
b5acd08 to
71d920b
Compare
1cf1b3c to
25671dc
Compare
25671dc to
720e0d4
Compare
720e0d4 to
8d7bda1
Compare
5fbb29a to
3bc3619
Compare
| ) -> Result<Option<ContactId>> { | ||
| logged_debug_assert!( | ||
| context, | ||
| ensure!( |
There was a problem hiding this comment.
does that change end up in a device message as "❌ Failed to receive a message … Please report this bug to [email protected] ..."
this is not really smth the user should report to us or where the user is actionable - also that can easily ends up in spammed device chat.
it seems better to ignore that as before and log an error.
There was a problem hiding this comment.
Seems nice to know if we forgot some code that is still calling lookup_key_contact_by_fingerprint() with an empty fingerprint since that should never happen, but it's not that important, we can also just ignore and log it.
|
|
||
| To keep chatting with someone, send them an invite link." | ||
| ))] | ||
| NoMoreUnencrypted = 250, |
There was a problem hiding this comment.
this value is missing in deltachat.h - and maybe also in jsonroc
There was a problem hiding this comment.
We don't have jsonrpc documentation for the strings, unless I missed something. Added it to deltachat.h
f95b027 to
02a615b
Compare
| if !chat.is_self_in_chat(context).await? { | ||
| let err = format!("Can't generate QR code, self is not a member of chat {id}"); | ||
| error!(context, "get_securejoin_qr: {err}."); | ||
| bail!(err); | ||
| } |
There was a problem hiding this comment.
This change is necessary to make ensure that no QR codes can be generated for the migrated groups and mailinglists. The error!() here is a bit weird, but I included it because the other error paths in this function also have it; might as well remove it completely from this function.
In its stead, remove `recode_avatar` high-level migration. It was added 5 years ago, and even if someone updates Delta Chat after such a long time, large avatars are not a problem anymore since we don't send them in unencrypted messages.
The change to can_send() is most important, because it makes `can_send()` return false for legacy unencrypted 1:1 chats
571af34 to
52b643b
Compare
Fixes #8775
Warning: Do NOT test this PR with a life account of yours! It might remove existing unencrypted messages. Instead, test #8930, which is based on this PR here.
TODO:
Follow-up PRs that need to be stack-merged together with this one:
force_encryptionwas off #8930Things I considered but didn't implement:
create_and_deduplicate_from_bytes()so that the migration doesn't depend on external code. Seems fine as-is; if we ever removecreate_and_deduplicate_from_bytes(), we can just remove the respective code from the migration.What I will do in future PRs (not in the current PR stack):
Contact::create()BREAKING CHANGE: Removed
force_encryptionconfig; encryption is always forced nowBREAKING CHANGE: Removed stock string
InvalidUnencryptedMail = 174(translated asinvalid_unencrypted_tap_to_learn_more)BREAKING CHANGE: Added stock string
NoMoreUnencrypted = 250(translated asdevicemsg_no_more_unencrypted)BREAKING CHANGE: Remove
DC_INFO_INVALID_UNENCRYPTED_MAIL/SystemMessageType::InvalidUnencryptedMail