-
Notifications
You must be signed in to change notification settings - Fork 216
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
Store sharedHistory
flag for inbound Megolm sessions
#1444
Conversation
...SDK/Data/RoomSummaryStore/CoreData/MXCoreDataRoomSummaryStore.xcdatamodeld/.xccurrentversion
Show resolved
Hide resolved
@@ -47,8 +47,14 @@ | |||
"MXHTTPAdditionalHeadersUnitTests", | |||
"MXJSONModelUnitTests", | |||
"MXKeyProviderUnitTests", | |||
"MXLoggerUnitTests\/testDeleteLogFiles", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you manually edit the file to just include the class names? And can you also include them in UnitTestsWithSanitizers.xctestplan
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment about test plan file, otherwise LGTM 👍
Relates to element-hq/element-ios#4947 which is an implementation of matrix-org/matrix-spec-proposals#3061
This PR stores a
sharedHistory
flag on allMXOlmInboundGroupSession
s, which reflects the current history visibility of a room. In a future PR this flag will be used to determine which sessions can be shared with other users when invited.The changes in this PR:
sharedHistory
flag toMXOlmInboundGroupSession
and other related objects, so that it can be both persisted as well as backed up to the serverroomId
toMXRealmOlmInboundGroupSession
so that inbound sessions can be fetched byroomId
in the future (i.e. "share keys per room"). Otherwise we would need to fetch them all, deserialize the data and only then filter in memory.MXMegolmEncryption.m
which checks whether a session should be reset and add another check based on room history visibility change