-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync All Preference Updates Across Devices (#1400)
* Sync preference in batches * a bit of cleanup * update than handling of the incoming mls sync msg * comments * wip * rely on mls for ordering * move the group_id to the info field during hkdf as suggested * lint * Constrain params to only what they need to be * lint * Store and emit hmac key updates * fix wasm * worker handle * fix user preferences * fix tests * cleanup * test fix * cleanup * gate the worker handle behind test utils * lint * lint * cleanup * try this * add test-utils flag * cleanup * revert * revert * test fix * xmtp_common exists now
- Loading branch information
Showing
12 changed files
with
1,222 additions
and
1,019 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
xmtp_mls/migrations/2024-12-11-183736_recreate_user_preferences_with_primary_key/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DROP TABLE user_preferences; | ||
|
||
CREATE TABLE user_preferences( | ||
id INTEGER PRIMARY KEY ASC, | ||
hmac_key BLOB NOT NULL | ||
); |
6 changes: 6 additions & 0 deletions
6
xmtp_mls/migrations/2024-12-11-183736_recreate_user_preferences_with_primary_key/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DROP TABLE user_preferences; | ||
|
||
CREATE TABLE user_preferences( | ||
id INTEGER PRIMARY KEY ASC NOT NULL, | ||
hmac_key BLOB | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.