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

Add support for private user preferences #499

Merged
merged 77 commits into from
Jan 2, 2024
Merged
Changes from 2 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
62537ea
feat: add self-encryption support
neekolas Oct 6, 2023
283ebbf
Merge pull request #462 from xmtp/nmolnar/ecies-test
neekolas Oct 6, 2023
ae6ed82
feat: add self-encryption support
neekolas Oct 6, 2023
7d045c7
Merge branch 'beta' into rygine/rebase-main
rygine Oct 26, 2023
3a57a0b
Merge pull request #476 from xmtp/rygine/rebase-main
rygine Oct 26, 2023
ca56fde
feat: add PPPP support
rygine Oct 25, 2023
1ee84c0
refactor: address feedback
rygine Oct 26, 2023
d1217ff
refactor: update naming
rygine Oct 26, 2023
2a41783
fix: fix encryption keys
rygine Oct 26, 2023
559900d
test: add tests
rygine Oct 26, 2023
a06ce53
refactor: add Conversation types
rygine Oct 26, 2023
79a3dc0
test: add more tests
rygine Oct 26, 2023
4d1407f
refactor: make consentList private
rygine Oct 26, 2023
0eefdb5
test: update test to confirm ordering
rygine Oct 26, 2023
831b9cc
Merge pull request #477 from xmtp/rygine/add-pppp
rygine Oct 26, 2023
4a2d049
fix: export types
rygine Oct 26, 2023
cc89dbb
Merge pull request #478 from xmtp/rygine/export-types
rygine Oct 26, 2023
0d92c5c
fix: add `startTime` option for loading consent list
rygine Oct 27, 2023
ec6b01a
fix: fix lint warnings
rygine Oct 27, 2023
d28aebd
refactor: remove consent client option, auto-fetch
rygine Oct 27, 2023
57ae5fc
Merge pull request #479 from xmtp/rygine/add-start-time-option
rygine Oct 27, 2023
88761f8
fix: convert static methods to instance methods
rygine Oct 31, 2023
e86ac72
fix: update consent list entries after publish
rygine Oct 31, 2023
ff1f890
fix: wait for contact allow before return convo
rygine Oct 31, 2023
0cdec5e
Merge pull request #481 from xmtp/rygine/pppp-update
rygine Oct 31, 2023
780071a
refactor: timestamp tracking of consent list entries
rygine Nov 1, 2023
1c6576f
fix: `blocked`/`block` => `denied`/`deny`
rygine Nov 1, 2023
6300658
fix: update consent on message send if unknown
rygine Nov 1, 2023
126bbb3
fix: update consent tests
rygine Nov 1, 2023
0a12b6b
test: add test for unknown => allowed convo update
rygine Nov 1, 2023
731c2cb
Merge pull request #483 from xmtp/rygine/pppp-updates
rygine Nov 1, 2023
e6fab8a
fix: add `ConsentListEntry` export
rygine Nov 1, 2023
bd853d4
Merge pull request #486 from xmtp/rygine/add-consent-export
rygine Nov 1, 2023
8fde688
Docs: Add user consent section (#485)
jhaaaa Nov 1, 2023
aa0f2fe
feat: add consent list streaming
rygine Nov 8, 2023
6bceb1c
Merge pull request #490 from xmtp/rygine/consent-stream
rygine Nov 9, 2023
1f9ce8e
fix: export `PrivatePreferencesAction` type
rygine Nov 13, 2023
48558bc
Merge branch 'beta' into rygine/export-pppp-type
rygine Nov 13, 2023
287bc7b
Merge pull request #492 from xmtp/rygine/export-pppp-type
rygine Nov 13, 2023
846b095
build: upgrade `@xmtp/proto`
rygine Nov 15, 2023
3542d2b
refactor: add PPPP suport to JobRunner
rygine Nov 15, 2023
7c71956
refactor: remove offset from conversations.list()
rygine Nov 15, 2023
78f9e5a
feat: use JobRunner to load consent list
rygine Nov 15, 2023
3c6a2a4
fix: call Client Contacts init last
rygine Nov 15, 2023
8f2b46f
test: update tests
rygine Nov 15, 2023
92e042e
refactor: use `reset` in `setConsentListEntries`
rygine Nov 15, 2023
bd3b725
Merge pull request #493 from xmtp/rygine/pppp-update3
rygine Nov 15, 2023
c8ddbe1
chore: remove initial self encryption code
rygine Dec 5, 2023
d8b343d
fix: update PPPP encryption
rygine Dec 5, 2023
fc36363
Merge pull request #497 from xmtp/rygine/update-pppp
rygine Dec 5, 2023
1804bff
fix: `pppp` => `user-preferences`
rygine Dec 5, 2023
ae74d4b
Merge pull request #498 from xmtp/rygine/pppp-rename
rygine Dec 5, 2023
4bb7c33
Merge branch 'main' into beta
rygine Dec 5, 2023
43c270d
Merge pull request #500 from xmtp/rygine/resolve-conflicts
rygine Dec 5, 2023
c98e2b8
fix: update user preferences topic
rygine Dec 6, 2023
72ff335
Merge pull request #501 from xmtp/rygine/change-pppp-topic
rygine Dec 6, 2023
30a173b
chore: fix vscode setting
rygine Dec 14, 2023
6abc931
build: add esbuild plugin
rygine Dec 14, 2023
4993df5
chore: remove comments from tsconfig.json
rygine Dec 14, 2023
4b51dd3
refactor: update crypto exports
rygine Dec 14, 2023
fc794e3
fix: refactor user preferences exports for web
rygine Dec 14, 2023
630e776
build: add/remove/upgrade deps
rygine Dec 14, 2023
a18f1bc
ci: disable jsdom test (will re-add later)
rygine Dec 15, 2023
f0558f7
Merge pull request #503 from xmtp/rygine/wasm-update
rygine Dec 15, 2023
8dbaa70
fix: upgrade @xmtp/user-preferences-bindings-wasm
rygine Dec 15, 2023
5419784
test: re-enable jsdom tests
rygine Dec 15, 2023
7ad2eb3
Merge pull request #504 from xmtp/rygine/fix-tests
nplasterer Dec 15, 2023
f3ee486
fix: upgrade @xmtp/user-preferences-bindings-wasm
rygine Dec 19, 2023
b1ba8eb
Merge pull request #505 from xmtp/rygine/upgrade-consent-lib
rygine Dec 19, 2023
6ada383
fix: upgrade @xmtp/user-preferences-bindings-wasm
rygine Dec 19, 2023
5985e90
Merge pull request #506 from xmtp/rygine/upgrade-up-module
rygine Dec 19, 2023
a4c88c0
fix: upgrade @xmtp/user-preferences-bindings-wasm
rygine Dec 21, 2023
ad78bee
Merge pull request #507 from xmtp/rygine/upgrade-up-lib
rygine Dec 21, 2023
f6ea90b
chore: change `moduleResolution`
rygine Dec 22, 2023
9db0092
build: `.web` => `.browser`
rygine Dec 22, 2023
9376bcd
build: add bundler package, more exports
rygine Dec 22, 2023
ea63d30
Merge pull request #508 from xmtp/rygine/add-exports
rygine Dec 22, 2023
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
2 changes: 1 addition & 1 deletion src/utils/topic.ts
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ export const buildUserPrivateStoreTopic = (addrPrefixedKey: string): string => {
}

export const buildUserPrivatePreferencesTopic = (identifier: string) =>
buildContentTopic(`user-preferences-${identifier}`)
buildContentTopic(`userpreferences-${identifier}`)

// validate that a topic only contains ASCII characters 33-127
export const isValidTopic = (topic: string): boolean => {