You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We may receive a room key with an incomplete ratchet (first known message index of 1) but ideal SenderData, only to later find another room key with a complete ratchet (first known message index of 0) but less optimal SenderData.
PR #4040 addressed a special case of this issue, where the ratchets are identical (i.e., the first known message index is the same) but the SenderData differs.
However, we should also be able to merge two room keys with different ratchet states and SenderData, ensuring that the resulting key retains the best properties from both.
The InboundGroupSession::merge() method can be used to determine if two InboundGroupSession instances share the same ratchet.
This issue supersedes #3703, which had become cluttered with some loosely related discussions.
richvdh
changed the title
Allow room keys to be merged
Allow inbound megolm sessions to be merged when two copies are received from different sources
Feb 20, 2025
We may receive a room key with an incomplete ratchet (first known message index of 1) but ideal SenderData, only to later find another room key with a complete ratchet (first known message index of 0) but less optimal SenderData.
PR #4040 addressed a special case of this issue, where the ratchets are identical (i.e., the first known message index is the same) but the SenderData differs.
However, we should also be able to merge two room keys with different ratchet states and SenderData, ensuring that the resulting key retains the best properties from both.
The InboundGroupSession::merge() method can be used to determine if two InboundGroupSession instances share the same ratchet.
This issue supersedes #3703, which had become cluttered with some loosely related discussions.
Causes app layer issue: element-hq/element-x-ios#3352
The text was updated successfully, but these errors were encountered: