-
Notifications
You must be signed in to change notification settings - Fork 47
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
Incorrect label with attachments count #5460
Comments
@sosnovsky In the discussion on #5459, it has been decided to hide the label completely, irrespective of the number. Can we hide the label completely, as reverting the previous change seems to be functioning effectively and would require less effort. If you agree on this, it would be part of #5472 PR as it was really a small change -- i'll just reference this GH issue on the commit if thats ok with you? |
I checked our discussion there, but didn't find any comment about hiding attachments count label. There we discussed only hiding some |
Sorry, I mean the initial description in the GH issue. So, I'm little bit confused as to whether hide it or not:
It could be superseded by #5460 -- do you want me to display this label for both pgp encrypted and password protected message? |
Ah, there I meant that
Yes, attachments count label should be visible for any message when there is at least 1 visible attachment. In this task description there is a message with 2 attachments, but one of them is public key attachment which is not rendered. So attachments count label should be visible and have text In #5459 message has 2 attachments, but both of them are hidden, so attachments count label should be hidden too. |
Oh, okay. But in the current code, we only show the label if there are two or more renderable attachments. I just to confirm you would like it to be changed as suggested. |
Comment there says |
* add conditional statement for hiding noname attachment * wip: update test * wip: add test for password messages * #5460 hide number of attachments * #5460 add live gmail test * wip: live gmail test * wip: fix incorrect attachment count * pr reviews: fix incorrect number of attachments * bug fix: hide attachment container only when .pgp_pubkey is hidden * pr reviews: include missing test on gmail.ts * wip: revert changes on semaphore.yml * wip: trim blank line * pr reviews: fix bug * wip: live-gmail-test * wip: revert changes on semaphore.yml * pr reviews: fix minor issues * wip: fix test for filename * wip: fix ui for pgp block button
When message has attached public key and other attachment, UI shows
2 Attachments
label, while it should be1 Attachment
as public key attachment isn't shown:For example you can check
PDF attached
thread inflowcrypt.compatibility
accountThe text was updated successfully, but these errors were encountered: