Closed thecannabisapp closed 1 year ago
Hi @chinesehemp,
This is a known limitation of e2e - in fact, it is by design. The URL enrichment happens on the server side. Since the messages are fully encrypted, there's no way for the server to analyze the message contents and attach the necessary information.
@petyosi thank you.
@petyosi, out of curiosity, how can WhatsApp perform URL enrichment if they are also E2EE? Also, does E2EE affect media attachment previews in MessageSimple and ChannelPreviewItem components?
It is possible to do URL enrichment on the client side, after the message is decoded. However, this has reliability and performance implications. Regarding your second question: Media previews should be fine, but you may have to do some additional logic in the channel preview item.
For further assistance, I may suggest you reach out to support@getstream.io - we are using the issues here for bug reports and project management.
Describe the bug
I've implemented Virgil E3Kit as per the HIPAA chatbot tutorial. To encrypt my messages, I've chosen to use the overrideSubmitHandler. However, I've noticed that this doesn't support messages that contain URLs and enrich them in the message.attachment prop.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A message that contains a URL should be passed through the custom overrideSubmitHandler and the attachment prop on the message should contain the attachment.
Screenshots
Package version
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context