When QR generation fails, we should retry it. We're doing it with some timeout to avoid making the calls too frequent.
This diff also introduces a loading state for QR on native:
Differential D14383
[native][web] Retry QR code generation Authored by tomek on Feb 18 2025, 4:25 PM.
Details
When QR generation fails, we should retry it. We're doing it with some timeout to avoid making the calls too frequent. This diff also introduces a loading state for QR on native: Modified the QR generation call to success infrequently and checked if it was retried. Tested the following scenario both on native and web:
Before this diff, this fails. After this diff, a loading state of the QR code is shown, and then the correct QR code is displayed.
Diff Detail
Event Timeline
Comment Actions Change the approach to use attempt number instead of a flag. Also, fix a bug where the QR is invalid just after the logout - it is fixed by clearing the QR data after sending a message.
| ||||||||||||||||||||||||||||||||||||||