GithubHelp home page GithubHelp logo

Comments (4)

Jean-PhilippeR avatar Jean-PhilippeR commented on June 12, 2024

This issue is related to tracking devices for other matrix users
To avoid missing some devices, a first solution is to ask again all devices of all rooms members when we joins a new room by using POST /_matrix/client/unstable/keys/query but it is quite bandwith consuming

Can we imagine a light version of this request to only get current list fo device_ID for users?
Client will call this request when it joins a room, check which device_id is missing or has been deleted and ask complete information only for needed device?

We can also imagine to associate a track value for list of device of each user? This track value will be init to 0 and will be incremented each time a device is added or removed?
example:
1st device created : device_tracker[user XX] = 0
2nd device created :device_tracker[user XX] = 1
1st device deleted : device_tracker[user XX] = 2
3rd device created : device_tracker[user XX] = 3

This device_tracker would be returned in room state -> for each room member
So that when a client joins a room, he could easily check if its image of device list is obsolet or not for each room member.

from matrix-ios-sdk.

Jean-PhilippeR avatar Jean-PhilippeR commented on June 12, 2024

Other remark: if a device cannot decrypt a message because of unknown inbound session, it could be useful to create a new device request to ask to device emitter the next megolm key associated to a megolm session.
So that we miss one message but not the other ones.
What do you think of these proposals?

from matrix-ios-sdk.

manuroe avatar manuroe commented on June 12, 2024

The issue is similar to element-hq/element-web#2305.
We have a test testLeftAndJoinedBob that almost checks this scenario.

from matrix-ios-sdk.

richvdh avatar richvdh commented on June 12, 2024

tracking this as element-hq/element-web#4983 on the riot-web side

from matrix-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.