Skip to content

Commit

Permalink
chore: more PR reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Dec 3, 2024
1 parent 53cdcfb commit 498179a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ts/state/ducks/call.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const initialCallState: CallStateType = {
};

/**
* This slice is the one holding the default joinable rooms fetched once in a while from the default opengroup v2 server.
* This slice is the one holding the redux slice representing our current call state.
*/
const callSlice = createSlice({
name: 'call',
Expand Down
4 changes: 2 additions & 2 deletions ts/state/ducks/metaGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ const loadMetaDumpsFromDB = createAsyncThunk(

toReturn.push({ groupPk, infos, members });
} catch (e) {
// Note: Don't re trow here, we want to load everything we can
// Note: Don't rethrow here, we want to load everything we can
window.log.error(
`initGroup of Group wrapper of variant ${variant} failed with ${e.message} `
);
Expand Down Expand Up @@ -1217,7 +1217,7 @@ function refreshConvosModelProps(convoIds: Array<string>) {
}

/**
* This slice is the one holding the default joinable rooms fetched once in a while from the default opengroup v2 server.
* This slice is representing the cached state of all our current 03-groups.
*/
const metaGroupSlice = createSlice({
name: 'metaGroup',
Expand Down
3 changes: 1 addition & 2 deletions ts/state/ducks/onion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const initialOnionPathState = {
};

/**
* This slice is the one holding the default joinable rooms fetched once in a while from the default opengroup v2 server.
* This slice is the one holding our current onion path state, and if we are detect as online.
*/
const onionSlice = createSlice({
name: 'onionPaths',
Expand All @@ -28,7 +28,6 @@ const onionSlice = createSlice({
},
});

// destructures
const { actions, reducer } = onionSlice;
export const { updateOnionPaths, updateIsOnline } = actions;
export const defaultOnionReducer = reducer;
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@ import { fromHexToArray } from '../../../../session/utils/String';
import { TestUtils } from '../../../test-utils';

describe('libsession_multi_encrypt', () => {
// let us: TestUserKeyPairs;
// let groupX25519SecretKey: Uint8Array;

beforeEach(async () => {
// us = await TestUtils.generateUserKeyPairs();
// const group = await TestUtils.generateGroupV2(us.ed25519KeyPair.privKeyBytes);
// if (!group.secretKey) {
// throw new Error('failed to create grou[p');
// }
// groupX25519SecretKey = group.secretKey;
});
afterEach(() => {
Sinon.restore();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ describe('UserSyncJob pushChangesToUserSwarmIfNeeded', () => {
expect(dump.firstCall.args).to.be.deep.eq(['ContactsConfig']);
});

it('calls sendEncryptedDataToSnode with the right data x3 and retry if network returned nothing then success', async () => {
it('calls sendEncryptedDataToSnode with the right data x2 and retry if network returned nothing then success', async () => {
const profile = userChange(sodium, SnodeNamespaces.UserProfile, 321);
const contact = userChange(sodium, SnodeNamespaces.UserContacts, 123);
const groups = userChange(sodium, SnodeNamespaces.UserGroups, 111);
Expand Down

0 comments on commit 498179a

Please sign in to comment.