-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
fix: message events not firing after session restoration #3476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: message events not firing after session restoration #3476
Conversation
This commit adds a reinitializeCryptoStore method to properly reinitialize the crypto store and message handling pipeline after session restoration. This fixes an issue where message events would not fire after closing and reopening the browser with a saved session. Changes:\n- Added reinitializeCryptoStore method to Client class\n- Added TypeScript definitions for the new method\n- Added proper reinitialization of message event handlers\n- Forces immediate decryption attempt for ciphertext messages Testing:\n- Manually tested with session restoration\n- Verified message events fire correctly after browser restart\n- Confirmed both plain text and media messages work
|
Solved my problems over here. Works :D |
|
need this, how i apply this currently? |
I've simply installed using:
|
|
Need to check if this solve the problem of session broken in remote auth |
|
Is this still usefull ? |
its not rare. happen often |
Description
This PR fixes an issue where message events would not fire after closing and reopening the browser with a saved session. The issue was caused by the crypto store and message handling pipeline not being properly reinitialized after session restoration.
Related Issue(s)
Motivation and Context
When using saved sessions (LocalAuth/RemoteAuth), message events would stop working after closing and reopening the browser. This was due to the crypto store and message handling pipeline not being properly reinitialized. This fix ensures that messages continue to be processed correctly after session restoration.
How Has This Been Tested
tests/session_restore.jsEnvironment
Types of changes
Checklist