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

Enhance error message when encountering the UISI bug (or bug N..) #350

Closed
jdauphant opened this issue Dec 19, 2022 · 5 comments
Closed

Enhance error message when encountering the UISI bug (or bug N..) #350

jdauphant opened this issue Dec 19, 2022 · 5 comments
Assignees
Labels
bug Something isn't working P1 Priority 1 web

Comments

@jdauphant
Copy link
Contributor

jdauphant commented Dec 19, 2022

_t("Decryption fail: Please open Tchap on an other connected device to allow key sharing.");

This message say that "Decryption fail: Please open Tchap on an other connected device to allow key sharing." but there is also the case when the keys haven't been received from the recipient.

The crypto lib have the good error :
image
And following error with the same missing key :
image

I recommand, remove the hack and translate the error message provided by the crypto lib.

@jdauphant jdauphant added bug Something isn't working v4 web labels Dec 19, 2022
@mcalinghee mcalinghee added the P1 Priority 1 label Dec 20, 2022
@mcalinghee
Copy link
Contributor

mcalinghee commented Dec 30, 2022

After some analysis and this is not as trivial as we could think.

Here are some suggestions on how to implement this translation :
Solution 1 :
do the implementation with patch-package on the module matrix-js-sdk

benefits : easier solution than solution 2, and will take less time to have this in production
drawback : the code on the crypto layer is changing very often (every week) and conflict will happen often when upgrading our codebase

Solution 2 :
do the implementation directly in project : https://github.com/matrix-org/matrix-js-sdk

benefits : this is more accurate and long term solution, should not cause regression
drawback : will take some time to get this done and also the crypto layer might change in the coming weeks/months
=> Issue that we could suggest to element : #357

Solution 3 :
we can only translate static translation (as opposed to parameterized translation) or we could translate the most common errors to start with and add translation when they are coming through support.
benefits : easiest solution as we would have to add to only the translations(only tchap_translations.json) and quickest to implement, easier to maintain also
drawback : we have a lot of translation which are parameterized and they cannot be covered in a generic way with this solution, and not all errors will be translated but we translate this when the english errors will be highlighted through the support channel
=> PR for this solution can be found here : #355

@mcalinghee mcalinghee linked a pull request Dec 30, 2022 that will close this issue
25 tasks
@estellecomment
Copy link
Contributor

estellecomment commented Jan 2, 2023

EDIT

Todo/ideas :

@mcalinghee
Copy link
Contributor

Element is changing the appearance of the Decryption Error : matrix-org/matrix-react-sdk#9544
This should be there in the next release, in the meantime I suggest we try to review this PR as it is to give more clarity on the real source of the error

@odelcroi
Copy link
Member

odelcroi commented Jan 5, 2023 via email

@odelcroi odelcroi changed the title Granularity of unable to decrypt message error isn't good Enhance error message when encountering the UISI bug (or bug N..) Jan 5, 2023
@odelcroi
Copy link
Member

this issue should be reopen in regards to the new component in 4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 Priority 1 web
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants