-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update matrix-sdk & reaplce sled with sqlite #631
Conversation
/// whether this an acter space | ||
fn is_acter_space() -> Future<bool>; | ||
|
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.
where did this go?
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.
I removed it because Space::isActerSpace()
is not used on flutter side.
native/acter/src/api/auth.rs
Outdated
Ok(c) | ||
}) | ||
.await? | ||
let client = config |
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.
how come this doesn't need the RUNTIME.spawn
anymore? That sounds dubious.
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.
login_with_token()
calls new_client_config()
and login_with_token_under_config()
.
Because login_with_token_under_config()
is wrapped by RUNTIME.spawn()
now, I couldn't wrap login_with_token()
, caller of login_with_token_under_config()
by RUNTIME.spawn()
.
As we know, new_client_config()
contains async api of matrix and it must be spawned in tokio task.
So I wrapped new_client_config()
by RUNTIME.spawn()
.
native/acter/src/api/auth.rs
Outdated
Ok(c) | ||
}) | ||
.await? | ||
let client = config.build().await.context("buidling failed in client")?; |
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, too, doesn't need a RUNTIME.spawn
anymore?
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.
Same answer as above.
@@ -25,7 +25,7 @@ jobs: | |||
- uses: Swatinem/rust-cache@v1 | |||
- uses: nttld/setup-ndk@v1 | |||
with: | |||
ndk-version: r23c | |||
ndk-version: r22b |
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.
downgrades like this really should be mentioned, and explained in the PR description. This is not what someone would expect to happen in this PR coming from the title and description!
Update matrix-sdk to latest with replacing sled with sqlite