Skip to content
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

fix(api): Use the new sliding sync version API from the Rust SDK #128

Merged
merged 5 commits into from
Sep 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion internal/api/rust/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@
func NewRustClient(t ct.TestLike, opts api.ClientCreationOpts) (api.Client, error) {
t.Logf("NewRustClient[%s][%s] creating...", opts.UserID, opts.DeviceID)
matrix_sdk_ffi.LogEvent("rust.go", &zero, matrix_sdk_ffi.LogLevelInfo, t.Name(), fmt.Sprintf("NewRustClient[%s][%s] creating...", opts.UserID, opts.DeviceID))
ab := matrix_sdk_ffi.NewClientBuilder().HomeserverUrl(opts.BaseURL).SlidingSyncProxy(&opts.SlidingSyncURL).AutoEnableCrossSigning(true)
ab := matrix_sdk_ffi.NewClientBuilder()
.HomeserverUrl(opts.BaseURL)

Check failure on line 68 in internal/api/rust/rust.go

View workflow job for this annotation

GitHub Actions / Tests

syntax error: unexpected ., expected }

Check failure on line 68 in internal/api/rust/rust.go

View workflow job for this annotation

GitHub Actions / Tests (Rust only, latest) / tests

syntax error: unexpected ., expected }
.SlidingSyncVersionBuilder(&matrix_sdk_ffi.SlidingSyncVersionBuilderProxy{ Url: &opts.SlidingSyncURL })
Hywan marked this conversation as resolved.
Show resolved Hide resolved
.AutoEnableCrossSigning(true)
var clientSessionDelegate matrix_sdk_ffi.ClientSessionDelegate
if opts.EnableCrossProcessRefreshLockProcessName != "" {

Check failure on line 72 in internal/api/rust/rust.go

View workflow job for this annotation

GitHub Actions / Tests

syntax error: non-declaration statement outside function body

Check failure on line 72 in internal/api/rust/rust.go

View workflow job for this annotation

GitHub Actions / Tests (Rust only, latest) / tests

syntax error: non-declaration statement outside function body
t.Logf("enabling cross process refresh lock with proc name=%s", opts.EnableCrossProcessRefreshLockProcessName)
clientSessionDelegate = NewMemoryClientSessionDelegate()
ab = ab.EnableCrossProcessRefreshLock(opts.EnableCrossProcessRefreshLockProcessName, clientSessionDelegate)
Expand Down
Loading