Skip to content

Commit

Permalink
Swap to SSS not SS
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Sep 6, 2024
1 parent 62c8b04 commit 3a9031e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions internal/api/rust/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ 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))
slidingSyncVersion := matrix_sdk_ffi.SlidingSyncVersionBuilderProxy{Url: opts.SlidingSyncURL}
slidingSyncVersion := matrix_sdk_ffi.SlidingSyncVersionBuilderNative{}
ab := matrix_sdk_ffi.NewClientBuilder().
HomeserverUrl(opts.BaseURL).
SlidingSyncVersionBuilder(slidingSyncVersion).
Expand Down Expand Up @@ -94,13 +94,11 @@ func NewRustClient(t ct.TestLike, opts api.ClientCreationOpts) (api.Client, erro
}
if opts.AccessToken != "" { // restore the session
session := matrix_sdk_ffi.Session{
AccessToken: opts.AccessToken,
UserId: opts.UserID,
DeviceId: opts.DeviceID,
HomeserverUrl: opts.BaseURL,
SlidingSyncVersion: matrix_sdk_ffi.SlidingSyncVersionProxy{
Url: opts.SlidingSyncURL,
},
AccessToken: opts.AccessToken,
UserId: opts.UserID,
DeviceId: opts.DeviceID,
HomeserverUrl: opts.BaseURL,
SlidingSyncVersion: matrix_sdk_ffi.SlidingSyncVersionNative{},
}
if err := client.RestoreSession(session); err != nil {
return nil, fmt.Errorf("RestoreSession: %s", err)
Expand Down

0 comments on commit 3a9031e

Please sign in to comment.