You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the same error in this situation:
as you can see userCards and localPrivateKey loaded successfully.
the user registered with a device, I called backend private key and everything was ok.
but when the same user login on new device. recipient messages will fail on decrypt and returns errorKeyRecipientIsNotFound error.
why the decrypt method returns error?
this is the code I used to decrypt messages:
if let sender = sender, let userCard = VirgilClient.userCards[sender] {
return try eThree.authDecrypt(text: text, from: userCard)
}
I think I doesn't make any sense and maybe its a bug if I'm not doing something wrong.
Bug Description
I am facing this issue when the data is received and sent so it is not decrypted so here are the terminal logs mentioned below.
PlatformException(decrypt-failed, The operation couldn’t be completed. (VirgilCryptoFoundation.FoundationError error -303.), unknown error, null)
Expected behavior
I want to decrypt the messages which I received and sent so they can be viewed in the view.
Screenshots
![img](https://user-images.githubusercontent.com/99293735/210257186-d4bc236c-63d6-4ba7-b4ef-0db0db6e510c.png)
If you see the screenshot the messages are not decrypted and due to that, they are not viewed on the screen.
Devices Information
Additional context
On the receiver and sender end, the messages are not decrypted, and due to that, they are not appearing in the view!
The text was updated successfully, but these errors were encountered: