element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
66 stars 11 forks source link

WebR full support for dehydrated device v2 #2278

Closed pmaier1 closed 2 months ago

pmaier1 commented 5 months ago
### Tasks
- [x] wasm bindings
- [x] create and rehydrate device in js-sdk
- [x] create and rehydrate device in react-sk
- [x] add `dehydrated` flag in Rust
- [x] don't show dehydrated devices as normal devices
- [x] periodically recreate dehydrated device
- [ ] update MSC
BillCarsonFr commented 4 months ago

Adding the dehydrated flag on the device keys payload will break SQL lite store https://github.com/matrix-org/matrix-rust-sdk/issues/3132

=> We have to release EAR and EIR with a new sdk version before starting creating web dehydrated device

uhoreg commented 3 months ago

Current status:

Work for future phases

uhoreg commented 3 months ago

Relevant PRs:

uhoreg commented 3 months ago

Screenshots:

Dehydrated device is removed from list of devices in Sessions tab.

Image

Presence of dehydrated device is indicated in Security & Privacy tab (called "Offline device" for now)

Image

In user info sidebar, dehydrated device is shown as "Offline device" (maybe we want to add some help text somehow?)

Image

pmaier1 commented 3 months ago

Thanks! I think we can find a better design for this but it's good enough for now. We should think about improvements once we plan delabsing it.

uhoreg commented 2 months ago

I've documented what's left to be done for phase 2 at https://github.com/element-hq/element-web/issues/27336