Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Reshare Megolm session after the other party unwedges #3604
Reshare Megolm session after the other party unwedges #3604
Changes from 6 commits
53f1b32
29db401
c6ea95d
a1621a1
acab0b2
55f1547
0c4295d
9a85cab
b102bad
41dde2b
9239cde
6c5f3dc
7273f28
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This seems to be also wrapped manually, though it doesn't look as comical as the other doc comment, wouldn't hurt to let
cargo fmt
format this as well.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.
This section is clustered together as well, please add some whitespace to make this easier to read.
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.
Technically this can panic, what do you think about using our
SequenceNumber
type for this. Not that it's terribly important but since we have such a type, seems like we could just use it for correctness sake:matrix-rust-sdk/crates/matrix-sdk-crypto/src/store/caches.rs
Lines 191 to 229 in 3be84a5
You would need to derive
Serialize
andDeserialize
for it with thetransparent
attribute, but that's about it.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.
This could take some docs, a single u32 could be figured out relatively easily, two of them double the confusion. It probably makes sense to convert the enum variant from a tuple variant to one with named fields, i.e.:
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.
This seems to be wrapped at a really small width, we wrap at 80 chars,
cargo fmt
will do this automatically for you if the lines are too long.