-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor message history sync, add to CLI (#930)
* fix: stubs support for SyncHistory * fix: send the history_request * fix: stubs handling the reply as well * fix: amend request-history-sync command * wip on the correct placement for the streams * fix: handle stream out in cli * fix: stream sync groups * fix: cleanup wip notes * fix: cleanup command * fix: formatting * fix: remove redundant commented fn call * fix: remove redundant log * fix: removes unused fn * Update Cargo.lock * Change how message history messages are stored * Add helper to get sync group * Only create sync group if not present * Refactor PIN verification * Add checks before sending history requests * Add checks before sending history reply * Update test_send_history_request test * Apply patch * Remove sync groups from stream_all_messages * Replace bincode with serde_json * Refactor history message checks * Update send history reply test * Add new_request_id test * Remove bundle_hash and signing_key * Simplify prepare groups * Refactor error handling * Add message history processing * Make message_history public * Remove redundant history URL check * Add official message history URLs * Use and require history_sync_url * Fix FFI bindings error type * Update CLI client for message history commands * Remove unused fn * Return group without assignment * Update CLI README * Update var name * Remove history message processing during sync * Add logging and more message processing * Add more message history CLI commands * Update README * Update history bundle download path * Fix test * Prevent processing reply from self * Add temp file cleanup * Remove ring dependency * Only return MlsGroup from get_sync_group * allow_history_sync => enable_history_sync * Add serde_json errors, remove map_err * Expose serde_json errors * Refactor match * Update CLI * Use chained calls * Fix clippy * Use log::error * Add get_pending_history_request test * Add get_latest_history_reply test * Add reply_to_history_request test --------- Co-authored-by: Ry Racherbaumer <[email protected]>
- Loading branch information
Showing
13 changed files
with
698 additions
and
302 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.