From 629e38379b85e623f2803f8ad7a7e503eaa04bd0 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 27 Aug 2024 10:29:25 +0200 Subject: [PATCH] fix(api): Use the new sliding sync version API from the Rust SDK. --- internal/api/rust/rust.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/api/rust/rust.go b/internal/api/rust/rust.go index 7f0303d..323bc49 100644 --- a/internal/api/rust/rust.go +++ b/internal/api/rust/rust.go @@ -64,7 +64,10 @@ type RustClient struct { 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) + .SlidingSyncVersionBuilder(&matrix_sdk_ffi.SlidingSyncVersionBuilderProxy{ Url: &opts.SlidingSyncURL }) + .AutoEnableCrossSigning(true) var clientSessionDelegate matrix_sdk_ffi.ClientSessionDelegate if opts.EnableCrossProcessRefreshLockProcessName != "" { t.Logf("enabling cross process refresh lock with proc name=%s", opts.EnableCrossProcessRefreshLockProcessName)