Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
5dcb8b3
Add lockbox service and create an invite lockbox on invite creation
islathehut Jan 12, 2026
50ffb68
Update changelog
islathehut Jan 12, 2026
f6b7caa
Self-assign member role on join with QSS
islathehut Jan 16, 2026
4213306
Fix self-assign
islathehut Jan 19, 2026
9b8cf70
Use event to trigger storage setup after self-assign
islathehut Jan 26, 2026
42f6fbe
Merge branch 'develop' into feat/3058-invite-self-assign
islathehut Jan 30, 2026
86a2848
Pull log entries when fully joined via qss (update later to handle jo…
islathehut Jan 26, 2026
b4a05c6
Move identitieswithstorage
islathehut Jan 26, 2026
1852f62
Get janky LFA identity working with orbitdb and get syncing on join w…
islathehut Jan 27, 2026
418c3a0
Also pull entries on connection to qss when already a member
islathehut Jan 27, 2026
7782134
Remove debugging log
islathehut Jan 27, 2026
4def5be
Add comments
islathehut Jan 29, 2026
60fda35
Add comments and return random signature
islathehut Jan 29, 2026
9ea6475
Update qss and auth modules to use feature branches for testing
islathehut Jan 29, 2026
e16c83a
Update qss e2e test to include joining without peers
islathehut Jan 30, 2026
d1d358d
Add self-assign unit tests and fix some unit tests post-LFA identity
islathehut Feb 2, 2026
6f015a7
Fix userProfile integration tests
islathehut Feb 2, 2026
96341eb
Update submodules
islathehut Feb 2, 2026
7e5b1ff
Remove changes left in from testing
islathehut Feb 2, 2026
c6dbdab
Fix last of integration tests and add initializing check to storage i…
islathehut Feb 3, 2026
3162cc7
Forgot a comment
islathehut Feb 3, 2026
f42e66e
Update CHANGELOG.md
islathehut Feb 3, 2026
6d1b056
Update CHANGELOG.md
islathehut Feb 3, 2026
2c5f555
Allow strings
islathehut Feb 3, 2026
11af44c
Missed one unit test update
islathehut Feb 3, 2026
4d2cd3f
Merge branch 'develop' into feat/3058-invite-self-assign
islathehut Feb 4, 2026
9ecdede
Baseline create private channels
islathehut Feb 11, 2026
972326e
Add indicators for channel privacy
islathehut Feb 11, 2026
6191a32
Add start of add member form
islathehut Feb 13, 2026
9a26e3d
Merge branch 'develop' into hack/private-channels
islathehut Mar 18, 2026
3326f56
Update users on chain creation and use correct encryption for private…
islathehut Mar 18, 2026
2548166
Implement backend/state manager for adding members
islathehut Mar 18, 2026
accb179
Merge branch 'develop' into hack/private-channels
islathehut Mar 23, 2026
b57327a
Reformat lock icons in channel titles
islathehut Mar 23, 2026
c50e892
Properly pass member channel IDs to state manager and use them for ui…
islathehut Mar 24, 2026
71a7b2e
Encrypt private channel metadata with channel key
islathehut Mar 25, 2026
324219d
Use lock icon from figma
islathehut Mar 30, 2026
f9409dc
Fix formatting on channel list
islathehut Mar 30, 2026
b88b724
Better match figma design for channel creation
islathehut Mar 30, 2026
f5263a1
Update CreateChannelComponent.tsx
islathehut Mar 30, 2026
d055e60
Move iosswitch to its own file and update snapshots
islathehut Mar 30, 2026
b377937
Clean up and only update member list for add member list when modal i…
islathehut Mar 31, 2026
3fda7ad
Merge branch 'develop' into hack/private-channels
islathehut Mar 31, 2026
9889acf
Private channels on mobile
islathehut Apr 3, 2026
b4d2e3b
Use auth without sub role logic
islathehut Apr 3, 2026
e49899a
Fix test snapshots
islathehut Apr 3, 2026
d49b675
Update submodules
islathehut Apr 3, 2026
d66e6e7
Merge branch 'develop' into feat/3155-private-channels
islathehut Apr 3, 2026
973bef5
Fix babel dependency vulnerability
islathehut Apr 3, 2026
e411a82
More dependency fixes
islathehut Apr 3, 2026
bab994f
Fix rtl test
islathehut Apr 3, 2026
7f6fef1
Fix tests
islathehut Apr 6, 2026
c1044e0
Remove user profile from channel list item props and mild tweaks to f…
islathehut Apr 6, 2026
6498720
Stashing e2e changes
islathehut Apr 7, 2026
a2cbae9
Finalize private channel e2e test
islathehut Apr 7, 2026
ece7f94
Add qss private channels e2e tests
islathehut Apr 9, 2026
8668e6e
Go back to using PublicChannel type names to reduce PR size
islathehut Apr 9, 2026
cab5d13
Test files in private channels e2e, tweak test IDs and check for lock…
islathehut Apr 10, 2026
4cb88fc
use enum for sigchain events
islathehut Apr 10, 2026
297c842
Clean up logs, update tests, add unit tests for add member saga
islathehut Apr 10, 2026
d64d851
Create channels.service.spec.ts
islathehut Apr 13, 2026
6f985b1
Pass team ID to user update method and reduce duplicated code in acce…
islathehut Apr 14, 2026
98c9f76
Fix user profile test
islathehut Apr 14, 2026
f930b2b
Update CHANGELOG.md
islathehut Apr 14, 2026
ebe249e
Merge branch 'feat/3155-private-channels' into feat/3155-private-chan…
islathehut Apr 14, 2026
e158a2d
Add text input to channel membership page
islathehut Apr 14, 2026
6dbbeab
Add fuzzy search to text field
islathehut Apr 14, 2026
8a3baa1
Update ChannelMembershipAppbarHeaderTitle.component.tsx
islathehut Apr 15, 2026
c8b16a1
Fill in lock icon contextually and use hash icon
islathehut Apr 16, 2026
aa31c10
Update e2e tests to match new icons
islathehut Apr 16, 2026
f71614f
Missed some test updates
islathehut Apr 16, 2026
f20812b
Update oneClient.test.ts
islathehut Apr 17, 2026
4a49c64
Update multipleClients.test.ts
islathehut Apr 17, 2026
9234f77
Update oneClient.qss.test.ts
islathehut Apr 17, 2026
0fc8fd5
Update channel name in context menu title and add members dialog to u…
islathehut Apr 17, 2026
b701e99
Update AddMembersChannel.test.tsx
islathehut Apr 17, 2026
0865fb2
Fix test issue with icon on channel context menu
islathehut Apr 20, 2026
a4b7204
Merge branch 'feat/3155-private-channels' into feat/3155-private-chan…
islathehut Apr 20, 2026
a4d14a4
Update title with icons on context menu
islathehut Apr 20, 2026
33c3dd3
Add permissions/member list screen and various fixes
islathehut Apr 23, 2026
b423d34
First attempt at DMs
islathehut Apr 29, 2026
de60829
Initial work on user search
islathehut Apr 29, 2026
20d7a64
Stashing more changes
islathehut Apr 30, 2026
781c34c
Rework dm panel and get search/dm creation working
islathehut Apr 30, 2026
2e21cf9
Clean up UI wonkiness, add styling, add input validation
islathehut May 1, 2026
f507eb6
Ensure syncing of channel display names, update UX, add count badge t…
islathehut May 1, 2026
d9c587c
Cleanup and clear connected peers on app start
islathehut May 5, 2026
35981de
Add searchable community membership menu and fix formatting of userpr…
islathehut May 6, 2026
e0f15cd
Update and add unit tests
islathehut May 7, 2026
0e2bf99
Add tests for badged profile photos and community membership components
islathehut May 7, 2026
2801fc3
Cleanup
islathehut May 7, 2026
751b263
Add new message tests
islathehut May 7, 2026
bc720dd
Make test Ids more testable and add logic for checking community memb…
islathehut May 8, 2026
6e965ed
Split things up in tests
islathehut May 8, 2026
754a266
Get remaining e2e tests working again
islathehut May 8, 2026
5e0ca66
Add base for dm e2e test
islathehut May 8, 2026
12d9f86
Committing partial test
islathehut May 11, 2026
53742c2
Finish non-qss dm e2e test
islathehut May 11, 2026
b9ded59
Update ci
islathehut May 11, 2026
c3af35c
QSS test and trying to fix black screen issue
islathehut May 13, 2026
ce4972a
Update modules
islathehut Jun 2, 2026
11cf63f
Update modules
islathehut Jun 2, 2026
9bfe437
Merge branch 'develop' into feat/2571-private-dms-desktop
islathehut Jun 2, 2026
3bac561
Post merge fixes and test tweaks
islathehut Jun 2, 2026
1a83442
Update e2e-linux.yml
islathehut Jun 2, 2026
3141f37
Fix for backwards compatibility
islathehut Jun 2, 2026
1138dd3
Update backwardsCompatibility.test.ts
islathehut Jun 2, 2026
f45f2c7
Use class instead of test ID
islathehut Jun 3, 2026
775121d
Update selectors.ts
islathehut Jun 3, 2026
e05fedd
Stashing
islathehut Jun 3, 2026
455e478
Update selectors.ts
islathehut Jun 3, 2026
fd32561
Update selectors.ts
islathehut Jun 3, 2026
f80e718
Wait for readiness of settings in e2e
islathehut Jun 4, 2026
643fd05
Merge branch 'develop' into feat/2571-private-dms-desktop
islathehut Jun 4, 2026
c444133
Post merge fixes
islathehut Jun 4, 2026
47576fb
Update multipleClients.test.ts
islathehut Jun 4, 2026
d2d8109
Make channel type optional for back compat
islathehut Jun 4, 2026
1199fd5
Update oneClient.test.ts
islathehut Jun 4, 2026
b1d336b
Update e2e-linux.yml
islathehut Jun 4, 2026
839b9ab
Update selectors.ts
islathehut Jun 8, 2026
3add903
Update oneClient.test.ts
islathehut Jun 8, 2026
209b82e
Expand logging on e2e tests
islathehut Jun 8, 2026
ff232c5
Update selectors.ts
islathehut Jun 8, 2026
e6692b2
Redo readiness check for settings modal
islathehut Jun 8, 2026
20afe82
Still try to close settings modal even if tab close fails
islathehut Jun 8, 2026
2742580
Close settings drawer when tab is opened
islathehut Jun 9, 2026
e0f1d65
Update CommunityMembership.component.tsx
islathehut Jun 9, 2026
843371b
Test fixes
islathehut Jun 9, 2026
30f5a36
Skip community membership test cases for now
islathehut Jun 9, 2026
0d45633
Fix channel add test and track all non-blocking errors on channel add
islathehut Jun 9, 2026
7a88613
Standardize check for channel count
islathehut Jun 9, 2026
2bff17e
Update multipleClients.test.ts
islathehut Jun 10, 2026
87a7b48
Update e2e-linux.yml
islathehut Jun 10, 2026
8b34294
Update selectors.ts
islathehut Jun 10, 2026
5bd7b38
Update e2e-qss-linux.yml
islathehut Jun 10, 2026
045bd7e
Update e2e-linux.yml
islathehut Jun 10, 2026
1d67429
Bump @types/node to match node version
islathehut Jun 11, 2026
3f7a65a
Update package-lock.json
islathehut Jun 12, 2026
e627a67
Update CHANGELOG.md
islathehut Jun 12, 2026
0e8e8d7
Try to fix
islathehut Jun 12, 2026
0e6b1dd
Revert "Try to fix"
islathehut Jun 12, 2026
590e5f8
Debugging dms test
islathehut Jun 12, 2026
fa9ee2c
Add more logging
islathehut Jun 12, 2026
ec15324
Expanded logging
islathehut Jun 12, 2026
882d5c4
Small tweaks, try a different x11 config
islathehut Jun 12, 2026
cdb8683
Update e2e-linux.yml
islathehut Jun 12, 2026
c02ee4e
More
islathehut Jun 12, 2026
0e33785
Cleanup
islathehut Jun 15, 2026
5689f4c
Cleanup
islathehut Jun 15, 2026
a0955f9
Update dm.service.ts
islathehut Jun 15, 2026
bb3a9ff
Cleanup
islathehut Jun 15, 2026
6f49bb5
Update submodules
islathehut Jun 15, 2026
23f5fbb
Remove DM e2e tests from CI
islathehut Jun 15, 2026
38d18cd
Update channel.service.spec.ts
islathehut Jun 15, 2026
ff0848b
Fix weird dependency issue on noise submodule
islathehut Jun 15, 2026
3e59656
Update js-libp2p-noise
islathehut Jun 15, 2026
ae9f9d9
Update Channel.tsx
islathehut Jun 15, 2026
b8eccbb
Update ChannelInput.test.tsx
islathehut Jun 15, 2026
df2601d
Update e2e-linux.yml
islathehut Jun 15, 2026
7e47f10
Merge branch 'develop' into feat/2571-private-dms-desktop
islathehut Jun 18, 2026
37e2e4a
Merge branch 'develop' into feat/2571-private-dms-desktop
islathehut Jun 18, 2026
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
16 changes: 15 additions & 1 deletion .github/workflows/e2e-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
timeout-minutes: 180

env:
DISPLAY: ":99.0"
DISPLAY: ":99"
TEST_MODE: true
IS_CI: true
SKIP_BACK_COMPAT_TEST_BRANCHES: '["update-orbitdb", "chore/upgrade-orbitdb-2_4_3", "fix/2679-2680-2682-3_0-fixes"]'
Expand Down Expand Up @@ -64,39 +64,53 @@ jobs:
run: ENVFILE=.env.e2e npm run distUbuntu && VERSION=$(jq -r ".version" package.json) && cd dist && FILE_NAME=$(ls | grep $VERSION) && echo "FILE_NAME=$(ls | grep $VERSION)" >> $GITHUB_ENV && cp $FILE_NAME ../../e2e-tests/Quiet && export FILE_NAME=$FILE_NAME

- name: Chmod
id: finish-build
working-directory: ./packages/e2e-tests/Quiet
run: chmod +x $FILE_NAME

- name: Run one client test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 15
max_attempts: 3
command: cd packages/e2e-tests && npm run test oneClient.test.ts

- name: Run user profile test
uses: nick-fields/retry@v2
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test userProfile.test.ts

- name: Run multiple clients test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test multipleClients.test.ts

# - name: Run multiple clients test (DMs)
# uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
# if: (success() || failure()) && steps.finish-build.outcome == 'success'
# with:
# timeout_minutes: 25
# max_attempts: 3
# command: cd packages/e2e-tests && npm run test multipleClients.dms.test.ts

- name: Run multiple clients test (private channels)
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test multipleClients.privateChannels.test.ts

- name: Run invitation link test - Includes 2 separate application clients
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/e2e-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,38 +63,52 @@ jobs:
run: hdiutil mount $FILE_NAME

- name: Add App file to applications
id: finish-build
run: cd ~ && cp -R "/Volumes/Quiet $VERSION${{matrix.binary_suffix}}/Quiet.app" /Applications

- name: Run one client test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 15
max_attempts: 3
command: cd packages/e2e-tests && npm run test oneClient.test.ts

- name: Run user profile test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test userProfile.test.ts

- name: Run multiple clients test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test multipleClients.test.ts

- name: Run multiple clients test (private channels)
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test multipleClients.privateChannels.test.ts

# - name: Run multiple clients test (DMs)
# uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
# if: (success() || failure()) && steps.finish-build.outcome == 'success'
# with:
# timeout_minutes: 25
# max_attempts: 3
# command: cd packages/e2e-tests && npm run test multipleClients.dms.test.ts

- name: Run invitation link test - Includes 2 separate application clients
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/e2e-qss-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,29 +70,41 @@ jobs:
run: ENVFILE=.env.e2e.qss npm run distUbuntu && VERSION=$(jq -r ".version" package.json) && cd dist && FILE_NAME=$(ls | grep $VERSION) && echo "FILE_NAME=$(ls | grep $VERSION)" >> $GITHUB_ENV && cp $FILE_NAME ../../e2e-tests/Quiet && export FILE_NAME=$FILE_NAME

- name: Chmod
id: finish-build
working-directory: ./packages/e2e-tests/Quiet
run: chmod +x $FILE_NAME

- name: Run multiple clients with QSS test
- name: Run one client with QSS test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test multipleClients.qss.test.ts
command: cd packages/e2e-tests && npm run test oneClient.qss.test.ts

- name: Run multiple clients with QSS test (private channels)
- name: Run multiple clients with QSS test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test multipleClients.privateChannels.qss.test.ts
command: cd packages/e2e-tests && npm run test multipleClients.qss.test.ts

- name: Run one client with QSS test
- name: Run multiple clients with QSS test (private channels)
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: (success() || failure()) && steps.finish-build.outcome == 'success'
with:
timeout_minutes: 25
max_attempts: 3
command: cd packages/e2e-tests && npm run test oneClient.qss.test.ts
command: cd packages/e2e-tests && npm run test multipleClients.privateChannels.qss.test.ts

# - name: Run multiple clients with QSS test (DMs)
# uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
# if: (success() || failure()) && steps.finish-build.outcome == 'success'
# with:
# timeout_minutes: 25
# max_attempts: 3
# command: cd packages/e2e-tests && npm run test multipleClients.dms.qss.test.ts

- name: Stop QSS docker
if: always()
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[submodule "3rd-party/auth"]
path = 3rd-party/auth
url = https://github.com/TryQuiet/auth.git
branch = main
branch = feat/private-dms
[submodule "3rd-party/js-libp2p-noise"]
path = 3rd-party/js-libp2p-noise
url = https://github.com/TryQuiet/js-libp2p-noise.git
Expand All @@ -13,4 +13,4 @@
[submodule "3rd-party/qss"]
path = 3rd-party/qss
url = https://github.com/TryQuiet/quiet-storage-service.git
branch = main
branch = feat/2571-private-dms
2 changes: 1 addition & 1 deletion 3rd-party/qss
Submodule qss updated 2 files
+1 −1 .gitmodules
+1 −1 3rd-party/auth
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Features

* Adds one-on-one and group DMs to desktop [#2571](https://github.com/TryQuiet/quiet/issues/2571)
* Allow all users to create private channels [#3277](https://github.com/TryQuiet/quiet/issues/3277)

### Fixes
Expand Down Expand Up @@ -60,6 +61,7 @@

* Registers APNS token with push notifications service [#3080](https://github.com/TryQuiet/quiet/issues/3080)
* Adds push notification service [#3086](https://github.com/TryQuiet/quiet/issues/3086)
* Adds private channels [#3155](https://github.com/TryQuiet/quiet/issues/3155)

### Fixes

Expand Down
18 changes: 12 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 15 additions & 12 deletions packages/backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@types/jest": "28.1.8",
"@types/luxon": "^3.4.2",
"@types/mock-fs": "^4.13.1",
"@types/node": "18.11.9",
"@types/node": "20.19.43",
"@types/node-fetch": "^2.5.11",
"@types/supertest": "^2.0.11",
"@types/tmp": "^0.2.3",
Expand Down Expand Up @@ -107,7 +107,7 @@
"@helia/unixfs": "4.0.1",
"@ipld/dag-cbor": "^9.2.1",
"@ipld/dag-pb": "^4.1.2",
"@libp2p/crypto": "^5.0.8",
"@libp2p/crypto": "5.0.8",
"@libp2p/echo": "^1.1.1",
"@libp2p/identify": "^3.0.14",
"@libp2p/interface": "^2.3.0",
Expand Down Expand Up @@ -201,8 +201,11 @@
},
"overrides": {
"level": "$level",
"multiformats": "13.3.1",
"@chainsafe/libp2p-noise": {
"@libp2p/crypto": "5.0.8"
},
"@orbitdb/core": {
"multiformats": "13.3.1",
"@ipld/dag-cbor": "9.2.1"
},
"express": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,10 @@ class CryptoService extends ChainServiceBase {
contents,
}
const isValid = this.validateSignature(fullSig)
if (!isValid && failOnInvalid) {
throw new Error(`Couldn't verify signature on message`)
if (!isValid) {
const validationError = new Error(`Couldn't verify signature on message`)
logger.error(`Error while validating message signature`, validationError)
if (failOnInvalid) throw validationError
}

return {
Expand Down
22 changes: 20 additions & 2 deletions packages/backend/src/nest/auth/services/roles/permissions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
export enum Permissions {
MODIFIABLE_MEMBERSHIP = 'modifiable-membership',
import { PermissionsMap, Permission } from '@localfirst/auth'

export const defaultDmPermissions = (memberIds: string[]): PermissionsMap => {
return {
[Permission.MODIFIABLE_MEMBERSHIP]: {
memberIds,
},
}
}

export const defaultChannelPermissions = (): PermissionsMap => {
return {
[Permission.MODIFIABLE_MEMBERSHIP]: true,
}
}

export const defaultGenericPermissions = (): PermissionsMap => {
return {
[Permission.MODIFIABLE_MEMBERSHIP]: true,
}
}
Loading
Loading