Skip to content

doc: Adapt the comment on MessageObject.showPadlock #6925

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

Open
wants to merge 1 commit into
base: link2xt/pgp-contacts
Choose a base branch
from

Conversation

Hocuri
Copy link
Collaborator

@Hocuri Hocuri commented Jun 19, 2025

We want to remove the padlock-icon from messages, and instead show an icon if the message was unencrypted: deltachat/deltachat-ios#2746

Now, it's confusing for implementers that there is a field showPadlock in the jsonrpc. This PR adapts the comment.

Two alternatives to this PR would be:

  • Deprecated showPadlock, and introduce a field wasEncrypted
  • Deprecated showPadlock, and introduce a field showLetterIcon, which is the inverse of showPadlock.

@r10s
Copy link
Contributor

r10s commented Jun 19, 2025

iOS is already adapted in a PR, deltachat/deltachat-ios#2746 , issue i noticed that "device chat" messages get the "letter" icon now as well.

options:

  1. we can special handle them in the UI
  2. we change core's showPadlock value returned for them

i am in favour of 2., which also makes some sense as the message never left the device. iirc, we do similar for "saved messages" - in case of a single device they do not leave the device and are not encryted technically

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