Open pixlwave opened 2 weeks ago
I think that at least one of the weird behavior here is caused by the fact that the backup key is never removed from the store:
That's why the SDK things the backup is active again after the restart.
I reproduced this and it can happen if there are multiple backups alive on the server as well. The SDK deletes the currently active one, the one the SDK uses itself, but after that one got deleted another one has become active.
The SDK detects when the backup is disabled, when re-enabling it, it believes it is enabled until you try to send a message (or maybe receive one that needs to open the key backup?) at which point it believes the backup is disabled again. Choosing to enable the backup fails with
Recording of 2 webs + an EX showing this and how it is handled differently.
https://github.com/user-attachments/assets/c5d2906e-b1e2-4f3f-bc8c-573f1b3ad15a