status-desktop/ui/imports
Pascal Precht d9acab566f perf(chat): only perform verification requests on scroll if necessary
There was an issue where imported messages from third-party services
would cause super laggy scroll behaviour in the chat view.

The reason for that is that on scroll, the app keeps calling
`getVerificationRequestFrom()` on the chatkey of the community.
Typically the results of these requests are cached so that it should
perform the call only once, but because there's no actual verification
request/contact for the community chat key (all third-party messages are
signed by the community), the call keeps on happening over and over.

This commit adds a flag to `getContactDetailsAsJson` and `isEnsVerified`
to control whether or not the call to `getVerificationRequestFrom`
should in fact be made (which should not be the case for imported
messages).

The result of this is a smoother scrolling experience.

Fixes #7767
2022-10-06 11:39:24 +02:00
..
Themes fix(general): buttons font fixed, font loading refactored 2022-09-19 22:10:25 +02:00
assets feat(@desktop/keycard): new assets for authentication flow added 2022-09-14 16:05:52 +02:00
shared perf(chat): only perform verification requests on scroll if necessary 2022-10-06 11:39:24 +02:00
utils perf(chat): only perform verification requests on scroll if necessary 2022-10-06 11:39:24 +02:00