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

feat: Add device message about outgoing undecryptable messages (#5164) #5176

Merged
merged 1 commit into from
Feb 12, 2024

Commits on Feb 12, 2024

  1. feat: Add device message about outgoing undecryptable messages (#5164)

    Currently when a user sets up another device by logging in, a new key is created. If a message is
    sent from either device outside, it cannot be decrypted by the other device.
    
    The message is replaced with square bracket error like this:
    ```
    <string name="systemmsg_cannot_decrypt">This message cannot be decrypted.\n\n• It might already help to simply reply to this message and ask the sender to send the message again.\n\n• If you just re-installed Delta Chat then it is best if you re-setup Delta Chat now and choose "Add as second device" or import a backup.</string>
    ```
    (taken from Android repo `res/values/strings.xml`)
    
    If the message is outgoing, it does not help to "simply reply to this message". Instead, we should
    add a translatable device message of a special type so UI can link to the FAQ entry about second
    device. But let's limit such notifications to 1 per day. And as for the undecryptable message
    itself, let it go to Trash if it can't be assigned to a chat by its references.
    iequidoo committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    066f832 View commit details
    Browse the repository at this point in the history