Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:TryQuiet/quiet into bug/csrs-add…
Browse files Browse the repository at this point in the history
…ed-many-times
  • Loading branch information
vinkabuki committed Nov 21, 2023
2 parents fc6eb2a + 8d35350 commit 85a9da8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Encrypted p2p team chat with no servers, just Tor.
<br />
<!-- <a href="https://tryquiet.org"><strong>tryquiet.org »</strong></a> -->
<a href="https://github.com/TryQuiet/quiet/releases/tag/quiet%401.9.6"><strong>Downloads</strong></a> |
<a href="https://github.com/TryQuiet/quiet/releases/tag/quiet%401.9.7"><strong>Downloads</strong></a> |
<a href="#how-it-works"><strong>How it Works</strong></a> |
<a href="#features"><strong>Features</strong></a> |
<a href="https://github.com/TryQuiet/monorepo/wiki/Threat-Model"><strong>Threat Model</strong></a> |
Expand Down Expand Up @@ -52,7 +52,7 @@ See our [FAQ](https://github.com/TryQuiet/monorepo/wiki/Quiet-FAQ) for answers t

## Getting started

To try Quiet, download the [latest release](https://github.com/TryQuiet/quiet/releases/tag/quiet%401.9.6) for your platform (.dmg for macOS, .exe for Windows, etc.) and install it in the normal way. Then create a community and open the community's settings to invite members.
To try Quiet, download the [latest release](https://github.com/TryQuiet/quiet/releases/tag/quiet%401.9.7) for your platform (.dmg for macOS, .exe for Windows, etc.) and install it in the normal way. Then create a community and open the community's settings to invite members.

If you'd like to help develop Quiet, see [Contributing to Quiet](#contributing-to-quiet).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('saveUserCsr', () => {
combineReducers({
[StoreKeys.Communities]: communitiesReducer,
[StoreKeys.Identity]: identityReducer,
[StoreKeys.Users]: usersReducer
[StoreKeys.Users]: usersReducer,
}),
{
[StoreKeys.Communities]: {
Expand All @@ -59,20 +59,19 @@ describe('saveUserCsr', () => {
identities: identityAdapter.setAll(identityAdapter.getInitialState(), [identity]),
},
[StoreKeys.Users]: {
...new UsersState()
}
...new UsersState(),
},
}
)
.apply(socket, socket.emit, [
SocketActionTypes.SAVE_USER_CSR,
{
csr: identity.userCsr?.userCsr
csr: identity.userCsr?.userCsr,
},
])
.run()
})
test("do not save user csr if it's already included in csrs list", async () => {

const socket = { emit: jest.fn(), on: jest.fn() } as unknown as Socket

const community =
Expand All @@ -90,7 +89,7 @@ describe('saveUserCsr', () => {
combineReducers({
[StoreKeys.Communities]: communitiesReducer,
[StoreKeys.Identity]: identityReducer,
[StoreKeys.Users]: usersReducer
[StoreKeys.Users]: usersReducer,
}),
{
[StoreKeys.Communities]: {
Expand All @@ -109,15 +108,14 @@ describe('saveUserCsr', () => {
},
[StoreKeys.Users]: {
...new UsersState(),
csrs: certificatesAdapter.setAll(certificatesAdapter.getInitialState(), [identity.userCsr?.pkcs10.pkcs10])
}
csrs: certificatesAdapter.setAll(certificatesAdapter.getInitialState(), [identity.userCsr?.pkcs10.pkcs10]),
},
}
)
.not
.apply(socket, socket.emit, [
.not.apply(socket, socket.emit, [
SocketActionTypes.SAVE_USER_CSR,
{
csr: identity.userCsr?.userCsr
csr: identity.userCsr?.userCsr,
},
])
.run()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export function* saveUserCsrSaga(socket: Socket): Generator {
}
console.log(`Send ${SocketActionTypes.SAVE_USER_CSR}`)
yield* apply(socket, socket.emit, applyEmitParams(SocketActionTypes.SAVE_USER_CSR, payload))
}
}

0 comments on commit 85a9da8

Please sign in to comment.