element-hq / element-hq/element-web
Using --profile triggers an "Unable to restore session" error
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. Opening element desktop on ubuntu 22.04 with the terminal with `--profile` parameters:
```bash
element-secondary-profile(){
element-desktop --profile myprofile2 1>&- 2>&- &
disown
}
```
2. the app starts, then load and reaches a state it can't recover from
```text
Unable to restore session
We encountered an error trying to restore your previous session.
If you have previously used a more recent version of Element, your session may be incompatible with this version. Close this window and return to the more recent version.
Clearing your browser's storage may fix the problem, but will sign you out and cause any encrypted chat history to become unreadable.
Button1: Clear Storage & Sign Out
Button2: Send logs
```
3. Press "clear storage and sign out"
4. Restart the application (using the same secondary profile parameter), re-log, re-trust device
5. Close the application
6. Back to step 1
### Outcome
#### What did you expect?
* Not have this issue as it worked in the past
* After doing the full flow: logging in & trusting the device the next start up of the application should not present the same issue.
#### What happened instead?
* All previous message are in state: "unable to decrypt"
* Closing the application (either after a full re-login+trusting flow or just closing on error) brings back to the same error message "Unable to restore session"
### Operating system
Ubuntu 22.04 (fully updated a couple of hours prior to this)
### Application version
Element version: 1.11.58
Crypto version: Rust SDK 0.7.0 (691ec63), Vodozemac 0.5.0
### How did you install the app?
https://element.io/download#linux
### Homeserver
Synapse 1.98.0
### Will you send logs?
Yes
Contributor guide
Assessment
This issue has not been assessed yet.