-
Notifications
You must be signed in to change notification settings - Fork 254
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
Sliding Sync timeline events and extensions #1054
Sliding Sync timeline events and extensions #1054
Conversation
…ension handling in sliding-sync
I have just released ruma 0.7.4 with the sliding sync changes. |
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.
Minor comments, good work!
Codecov ReportBase: 73.17% // Head: 73.17% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1054 +/- ##
=======================================
Coverage 73.17% 73.17%
=======================================
Files 110 110
Lines 12256 12265 +9
=======================================
+ Hits 8968 8975 +7
- Misses 3288 3290 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Looks mostly good. One thing beside the nits, now that E2EE is supposed to work with sliding sync and jack-in we need to change the text for the Get access token
section.
The way it is, it's going to produce broken E2EE setups. The access token that you can get from Element is already bound to a set of E2EE keys. A new access token needs to be created, either using curl
-like tools or jack-in
needs to support logging in. Using httpie
you can log in using this snippet:
$ https POST https://matrix.org/_matrix/client/v3/login type="m.login.password" password=foo identifier:='{"type": "m.id.user", "user": "@bar:matrix.org"}'
Another jack-in
problem, it hardcodes a device id, that won't ever work with E2EE, the following diff lets you configure it:
diff --git a/labs/jack-in/src/main.rs b/labs/jack-in/src/main.rs
index d3b47a41c7..b786f21099 100644
--- a/labs/jack-in/src/main.rs
+++ b/labs/jack-in/src/main.rs
@@ -83,6 +83,10 @@ struct Opt {
#[structopt(short, long, env = "JACKIN_USER")]
user: String,
+ /// The device ID associated with this access token
+ #[structopt(short, long, env = "JACKIN_DEVICE_ID")]
+ device_id: String,
+
#[structopt(long)]
/// Activate tracing and write the flamegraph to the specified file
flames: Option<PathBuf>,
@@ -112,7 +116,7 @@ async fn main() -> Result<()> {
let opt = Opt::from_args();
let user_id: OwnedUserId = opt.user.clone().parse()?;
- let device_id: OwnedDeviceId = "XdftAsd".into();
+ let device_id: OwnedDeviceId = opt.device_id.into();
if let Some(ref p) = opt.flames {
setup_flames(p.as_path());
Lastly jack-in doesn't seem to work currently with the hosted sliding sync proxy:
I'll tag this as requesting changes, since I'll want to retest it once the proxy works.
8ab5232
to
d2cd7c9
Compare
Seems like the proxy has an issue with one-time key counts, opened matrix-org/sliding-sync#52 for that. |
And another, rather critical issue: matrix-org/sliding-sync#53 |
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.
While we're waiting for the sliding sync proxy to start working, the file-logging
feature of jack-in
doesn't compile anymore.
9bf3639
to
a3d3973
Compare
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.
Alright, seems like everything works now.
a3d3973
to
773b587
Compare
ToDevice
Extension supportAccountData
Extension supportrefs #1014