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

Dbkr/save key backup key #4541

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
65762c4
Switch sliding sync support to simplified sliding sync
dbkr Sep 12, 2024
2593998
Remove txn_id handling, ensure we always resend when req params change
kegsay Sep 13, 2024
6fba79c
Fix some tests
kegsay Sep 13, 2024
e26e926
Fix remaining tests
kegsay Sep 13, 2024
c75c06a
Mark TODOs on tests which need to die
kegsay Sep 13, 2024
7444094
Linting
kegsay Sep 13, 2024
bf7be48
Make comments lie less
kegsay Sep 13, 2024
ade2c86
void
kegsay Sep 13, 2024
b8c3419
Always sent full extension request
kegsay Sep 13, 2024
85400e9
Fix test
kegsay Sep 13, 2024
c44818f
Remove usage of deprecated field
kegsay Sep 13, 2024
aeeb25f
Hopefully fix DM names
kegsay Sep 13, 2024
244ca62
Refactor how heroes are handled in Room
kegsay Sep 16, 2024
bd3f9f7
Fix how heroes work
kegsay Sep 16, 2024
581b419
Linting
kegsay Sep 16, 2024
39b4e9d
Ensure that when SSS omits heroes we don't forget we had heroes
kegsay Sep 16, 2024
11e7a3d
Check the right flag when doing timeline trickling
kegsay Sep 16, 2024
511a873
Also change when the backpagination token is set
kegsay Sep 16, 2024
181d786
Remove list ops and server-provided sort positions
kegsay Sep 17, 2024
679a984
Linting
kegsay Sep 17, 2024
cf37e43
Add Room.bumpStamp
kegsay Sep 17, 2024
426aa93
Update crypto wasm lib
kegsay Sep 18, 2024
63a636f
Add performance logging
kegsay Sep 18, 2024
f8d4161
Fix breaking change in crypto wasm v8
kegsay Sep 18, 2024
1fd6675
Update crypto wasm for breaking changes
kegsay Sep 18, 2024
8616294
Mark all tracked users as dirty on expired SSS connections
kegsay Sep 18, 2024
3833273
Merge remote-tracking branch 'origin/develop' into dbkr/sss
dbkr Nov 21, 2024
8b7213b
add ts extension
dbkr Nov 21, 2024
c6f8440
Fix typedoc ref
dbkr Nov 21, 2024
336797e
Add method to interface
dbkr Nov 21, 2024
332f9ca
Save the key backup key to secret storage
dbkr Nov 22, 2024
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
42 changes: 27 additions & 15 deletions spec/integ/sliding-sync-sdk.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,13 @@ describe("SlidingSyncSdk", () => {
client!.crypto!.stop();
});

it("gets enabled on the initial request only", () => {
expect(ext.onRequest(true)).toEqual({
it("gets enabled all the time", async () => {
expect(await ext.onRequest(true)).toEqual({
enabled: true,
});
expect(await ext.onRequest(false)).toEqual({
enabled: true,
});
expect(ext.onRequest(false)).toEqual(undefined);
});

it("can update device lists", () => {
Expand Down Expand Up @@ -686,11 +688,13 @@ describe("SlidingSyncSdk", () => {
ext = findExtension("account_data");
});

it("gets enabled on the initial request only", () => {
expect(ext.onRequest(true)).toEqual({
it("gets enabled all the time", async () => {
expect(await ext.onRequest(true)).toEqual({
enabled: true,
});
expect(await ext.onRequest(false)).toEqual({
enabled: true,
});
expect(ext.onRequest(false)).toEqual(undefined);
});

it("processes global account data", async () => {
Expand Down Expand Up @@ -814,8 +818,12 @@ describe("SlidingSyncSdk", () => {
ext = findExtension("to_device");
});

it("gets enabled with a limit on the initial request only", () => {
const reqJson: any = ext.onRequest(true);
it("gets enabled all the time", async () => {
let reqJson: any = await ext.onRequest(true);
expect(reqJson.enabled).toEqual(true);
expect(reqJson.limit).toBeGreaterThan(0);
expect(reqJson.since).toBeUndefined();
reqJson = await ext.onRequest(false);
expect(reqJson.enabled).toEqual(true);
expect(reqJson.limit).toBeGreaterThan(0);
expect(reqJson.since).toBeUndefined();
Expand All @@ -826,7 +834,7 @@ describe("SlidingSyncSdk", () => {
next_batch: "12345",
events: [],
});
expect(ext.onRequest(false)).toEqual({
expect(await ext.onRequest(false)).toMatchObject({
since: "12345",
});
});
Expand Down Expand Up @@ -910,11 +918,13 @@ describe("SlidingSyncSdk", () => {
ext = findExtension("typing");
});

it("gets enabled on the initial request only", () => {
expect(ext.onRequest(true)).toEqual({
it("gets enabled all the time", async () => {
expect(await ext.onRequest(true)).toEqual({
enabled: true,
});
expect(await ext.onRequest(false)).toEqual({
enabled: true,
});
expect(ext.onRequest(false)).toEqual(undefined);
});

it("processes typing notifications", async () => {
Expand Down Expand Up @@ -1035,11 +1045,13 @@ describe("SlidingSyncSdk", () => {
ext = findExtension("receipts");
});

it("gets enabled on the initial request only", () => {
expect(ext.onRequest(true)).toEqual({
it("gets enabled all the time", async () => {
expect(await ext.onRequest(true)).toEqual({
enabled: true,
});
expect(await ext.onRequest(false)).toEqual({
enabled: true,
});
expect(ext.onRequest(false)).toEqual(undefined);
});

it("processes receipts", async () => {
Expand Down
Loading