Page MenuHomePhorge
Feed All Stories

Oct 10 2023

marcin committed rCOMM19e5f0ff3d84: Send all notifications received by backgrounded app to JS at once.
Oct 10 2023, 3:36 PM
bartek added inline comments to D9351: [blob] Implement cleanup helper functions.
Oct 10 2023, 3:25 PM
michal accepted D9413: [blob] Add CLI option to run cleanup task.

Makes sense

Oct 10 2023, 3:22 PM
michal added inline comments to D9415: [terraform] Add blob cleanup cron task.
Oct 10 2023, 3:21 PM
rohan added inline comments to D9330: [keyserver/lib] Update isInvalidSidebarSource to check messageSpec.canBeSidebarSource.
Oct 10 2023, 3:03 PM
bartek added inline comments to D9415: [terraform] Add blob cleanup cron task.
Oct 10 2023, 3:01 PM
rohan updated the diff for D9331: [lib] Move test messages outside of the describe scope to reuse them.

Rebase

Oct 10 2023, 2:59 PM
rohan updated the diff for D9330: [keyserver/lib] Update isInvalidSidebarSource to check messageSpec.canBeSidebarSource.

Update isInvalidSidebarSource to pass unit tests

Oct 10 2023, 2:59 PM
rohan updated the diff for D9325: [lib] Introduce a canBeSidebarSource function in each message spec.

Rebase

Oct 10 2023, 2:59 PM
ashoat accepted D9427: [keyserver] migration to publish prekeys to identity.

Rather than a script, it would make my life a little easier if we could put this is in keyserver/src/database/migration-config.js – that way it should automatically run when I deploy the keyserver next

Oct 10 2023, 2:59 PM
rohan updated the diff for D9324: [lib] Update types for SIDEBAR_SOURCE messages to reflect isInvalidSidebarSource.

Rebase

Oct 10 2023, 2:59 PM
bartek added a comment to D9413: [blob] Add CLI option to run cleanup task.
  1. Don't we need to update the command in the docker file?
Oct 10 2023, 2:58 PM
rohan updated the summary of D9324: [lib] Update types for SIDEBAR_SOURCE messages to reflect isInvalidSidebarSource.
Oct 10 2023, 2:58 PM
rohan abandoned D9323: [keyserver/lib] Move isInvalidSidebarSource from message-utils to message-types.

@michal pointed out that doing this will later cause a circular dependency, so I'm keeping it in message-utils

Oct 10 2023, 2:57 PM
ashoat requested changes to D9423: [keyserver] validate prekeys only via cron job.

I agree we do not need to call revalidateAccountPrekeys anymore from getOlmSessionInitializationDataResponder. However, I think we still need to do it in registerOrLogin, so that we make sure the prekey that we pass when calling the identity service is initialized (in case it is the first call) and not expired (in case the keyserver has not been touched in some time).

Oct 10 2023, 2:55 PM
bartek added a comment to D9355: [blob] Delete S3 objects during cleanup.

If I understand correctly this will try to remove S3 blobs that might not exist (for holders can exist without having a blob uploaded and the logic will run for them too). Is this expected?

Oct 10 2023, 2:50 PM
ashoat accepted D9422: [keyserver] delete marking prekeys as published each time `olm` account is accessed.

I noticed that when Jon was first working on this, he copy-pasted some of @marcin's functions and kept the same name. Since that point, it appears that the copy-pasted functions have diverged. I think we should look to deduplicate them, or maybe have one call the other. We should certainly rename them to have different names if we are going to keep both.

Oct 10 2023, 2:45 PM
bartek added inline comments to D9352: [blob] Add function to perform cleanup operation.
Oct 10 2023, 2:45 PM
bartek added a comment to D9351: [blob] Implement cleanup helper functions.

LGTM, potentially we could add these optimisations:

  1. Return impl Iterator<> instead of Vec
Oct 10 2023, 2:42 PM
ashoat accepted D9421: [keyserver] cron job to refresh account prekeys.
Oct 10 2023, 2:38 PM
Harbormaster failed remote builds in B23144: Diff 31871 for D9330: [keyserver/lib] Update isInvalidSidebarSource to check messageSpec.canBeSidebarSource!
Oct 10 2023, 2:37 PM
ashoat accepted D9420: [keyserver] implement function to get account prekey and prekey signature.
Oct 10 2023, 2:35 PM
ashoat accepted D9419: [keyserver] refactor functions to check rotate/forget prekeys.
Oct 10 2023, 2:35 PM
marcin added inline comments to D9427: [keyserver] migration to publish prekeys to identity.
Oct 10 2023, 2:33 PM
bartek added inline comments to D9350: [blob] Add struct for representing unchecked blobs.
Oct 10 2023, 2:33 PM
marcin accepted D9419: [keyserver] refactor functions to check rotate/forget prekeys.
Oct 10 2023, 2:31 PM
rohan retitled D9330: [keyserver/lib] Update isInvalidSidebarSource to check messageSpec.canBeSidebarSource from [keyserver/lib] Replace most instances of isInvalidSidebarSource with canBeSidebarSource
Oct 10 2023, 2:26 PM
marcin updated the diff for D9429: Send all notifications received by backgrounded app to JS at once.

Ensure in Objective-C code that messageInfosArray is not optional.

Oct 10 2023, 2:25 PM
rohan planned changes to D9330: [keyserver/lib] Update isInvalidSidebarSource to check messageSpec.canBeSidebarSource.
Oct 10 2023, 2:24 PM
rohan updated the diff for D9330: [keyserver/lib] Update isInvalidSidebarSource to check messageSpec.canBeSidebarSource.

Update isInvalidSidebarSource

Oct 10 2023, 2:24 PM
marcin updated the diff for D9429: Send all notifications received by backgrounded app to JS at once.
  1. Make messageInfosArray not optional since it is actually not
  2. Use flatMap
Oct 10 2023, 2:23 PM
marcin added inline comments to D9401: Implement stateful and deferrable notification decryption and use it on iOS in NSE.
Oct 10 2023, 2:09 PM
ashoat added a reverting change for rCOMMb08ff098b607: [native] Temporary changes for staff release: rCOMMcf102e2a89b3: Revert "[native] Temporary changes for staff release".
Oct 10 2023, 2:04 PM
ashoat committed rCOMMcf102e2a89b3: Revert "[native] Temporary changes for staff release".
Oct 10 2023, 2:04 PM
ashoat committed rCOMMb08ff098b607: [native] Temporary changes for staff release.
Oct 10 2023, 2:04 PM
ashoat committed rCOMM7551c5b02b07: [native] codeVersion -> 268.
Oct 10 2023, 2:04 PM
ashoat requested review of D9443: [keyserver] Avoid "WebSocket is not open" error.
Oct 10 2023, 2:03 PM
marcin updated the diff for D9401: Implement stateful and deferrable notification decryption and use it on iOS in NSE.

Remove NotificationsCryptoModule instantiation. Return opaque type containing crypto module state accessible only from NotificationsCryptoModule implementation file.

Oct 10 2023, 2:03 PM
ashoat committed rCOMMe0c3680493c3: [native] codeVersion -> 267.
Oct 10 2023, 2:02 PM
ashoat committed rCOMM739bbcefeace: [web][keyserver] codeVersion -> 33.
Oct 10 2023, 2:00 PM
ashoat committed rCOMM5459aa6ce90f: Update NEXT_CODE_VERSION to 267 for mobile, 32 for web.
Oct 10 2023, 2:00 PM
ashoat committed rCOMM7a8575a036c8: [web][keyserver] codeVersion -> 32.
Oct 10 2023, 1:56 PM
ashoat closed D9439: [lib] Fix render of ConnectedWalletInfo on landing.
Oct 10 2023, 1:53 PM
ashoat committed rCOMM3d3e0ed4f78c: [lib] Fix render of ConnectedWalletInfo on landing.
Oct 10 2023, 1:53 PM
rohan accepted D9439: [lib] Fix render of ConnectedWalletInfo on landing.

Thanks for the test videos

Oct 10 2023, 1:51 PM
rohan accepted D9392: [lib/native] introduce parseUserMentions function.

Seems reasonable, could be good to test it with an ENS name being mentioned as well to cover all grounds

Oct 10 2023, 1:43 PM
michal accepted D9415: [terraform] Add blob cleanup cron task.
Oct 10 2023, 1:41 PM
michal accepted D9414: [blob] Add logs to cleanup task.
Oct 10 2023, 1:37 PM
michal added a comment to D9413: [blob] Add CLI option to run cleanup task.
  1. Don't we need to update the command in the docker file?
  2. This way cargo run -- server --http-port 123 doesn't work, only cargo run -- --http-port 123 server works, which feels weird. We could potentially add global = true to all args but that also has it's problems
Oct 10 2023, 1:36 PM
ashoat closed D9438: [landing] Update Lottie packages.
Oct 10 2023, 1:28 PM
ashoat closed D9437: [native] Update height calculations for SIWEPanel.
Oct 10 2023, 1:28 PM
ashoat closed D9436: [landing] Update WalletConnect CSS override.
Oct 10 2023, 1:28 PM
ashoat committed rCOMMe2e29d561365: [landing] Update Lottie packages.
Oct 10 2023, 1:28 PM
ashoat committed rCOMMf0516ab9365e: [native] Update height calculations for SIWEPanel.
Oct 10 2023, 1:28 PM
ashoat committed rCOMM911e758cf46c: [landing] Update WalletConnect CSS override.
Oct 10 2023, 1:28 PM
ashoat closed D9435: [landing] Update useMonitorForWalletConnectModal for new WalletConnect modal.
Oct 10 2023, 1:28 PM
ashoat committed rCOMM3935890dc7e4: [landing] Update useMonitorForWalletConnectModal for new WalletConnect modal.
Oct 10 2023, 1:28 PM
ashoat closed D9434: [lib][web][landing] Wagmi 1.0.
Oct 10 2023, 1:28 PM
ashoat committed rCOMMc88417212999: [lib][web][landing] Wagmi 1.0.
Oct 10 2023, 1:28 PM
ashoat accepted D9416: [services] Bump blob-service to version to 1.0.0.
Oct 10 2023, 1:26 PM
michal added a comment to D9355: [blob] Delete S3 objects during cleanup.

If I understand correctly this will try to remove S3 blobs that might not exist (for holders can exist without having a blob uploaded and the logic will run for them too). Is this expected?

Oct 10 2023, 1:24 PM
ashoat closed D9433: [lib] Stop using Ethers.js client from Wagmi.
Oct 10 2023, 1:22 PM
ashoat committed rCOMMc253d4674165: [lib] Stop using Ethers.js client from Wagmi.
Oct 10 2023, 1:22 PM
ashoat closed D9432: [landing] Reduce code duplication in landing/siwe.react.js.
Oct 10 2023, 1:22 PM
ashoat committed rCOMMd8339b2979f1: [landing] Reduce code duplication in landing/siwe.react.js.
Oct 10 2023, 1:22 PM
ashoat added a comment to D9439: [lib] Fix render of ConnectedWalletInfo on landing.

Attaching videos here since it's the last diff in the stack:

Oct 10 2023, 1:16 PM
ashoat updated the test plan for D9438: [landing] Update Lottie packages.
Oct 10 2023, 1:12 PM
michal accepted D9352: [blob] Add function to perform cleanup operation.
Oct 10 2023, 1:10 PM
michal accepted D9351: [blob] Implement cleanup helper functions.

LGTM, potentially we could add these optimisations:

  1. Return impl Iterator<> instead of Vec
  2. Return &'self str in blobs_to_find_holders

but I haven't analysed it very thoroughly so there might be lifetime/ergonomics issues

Oct 10 2023, 1:10 PM
michal accepted D9350: [blob] Add struct for representing unchecked blobs.
Oct 10 2023, 1:09 PM
tomek requested review of D9442: [lib] Move transforming rows into updates to specs.
Oct 10 2023, 1:05 PM
tomek accepted D9351: [blob] Implement cleanup helper functions.
Oct 10 2023, 12:06 PM
ashoat updated the diff for D9439: [lib] Fix render of ConnectedWalletInfo on landing.

Rebase

Oct 10 2023, 12:01 PM
ashoat added a comment to D9438: [landing] Update Lottie packages.

Changing this diff to upgrade Lottie packages instead. Way better idea than forcing a Yarn resolution that may break things in the future

Oct 10 2023, 12:00 PM
ashoat retitled D9438: [landing] Update Lottie packages from [landing] Force use of lit-html@2.8.0
Oct 10 2023, 11:59 AM
ashoat updated the diff for D9438: [landing] Update Lottie packages.

Upgrade Lottie instead

Oct 10 2023, 11:59 AM
tomek accepted D9350: [blob] Add struct for representing unchecked blobs.
Oct 10 2023, 11:46 AM
tomek accepted D9429: Send all notifications received by backgrounded app to JS at once.
Oct 10 2023, 11:23 AM
tomek added inline comments to D9401: Implement stateful and deferrable notification decryption and use it on iOS in NSE.
Oct 10 2023, 11:17 AM
marcin added inline comments to D9401: Implement stateful and deferrable notification decryption and use it on iOS in NSE.
Oct 10 2023, 10:54 AM
kamil added 1 blocking reviewer(s) for D9421: [keyserver] cron job to refresh account prekeys: varun.
Oct 10 2023, 10:50 AM
marcin accepted D9423: [keyserver] validate prekeys only via cron job.
Oct 10 2023, 10:34 AM
marcin accepted D9422: [keyserver] delete marking prekeys as published each time `olm` account is accessed.
Oct 10 2023, 10:33 AM
marcin accepted D9421: [keyserver] cron job to refresh account prekeys.

Looks fine assuming that we always want to rotate both even if only one actually needs rotation. Make sure you get @varun acceptance before landing since I don't have enough context to review publishNewPrekeys

Oct 10 2023, 10:33 AM
marcin accepted D9420: [keyserver] implement function to get account prekey and prekey signature.
Oct 10 2023, 10:20 AM
michal accepted D9349: [blob] Add db helpers for cleanup.
Oct 10 2023, 9:43 AM
tomek added a comment to D9402: [lib] Handle `[leave/delete]ThreadActionTypes.success` in `reduceThreadActivity`.

Shouldn't we also handle processUpdatesActionType action?

Oct 10 2023, 9:39 AM
michal accepted D9348: [services-lib] Add function to batch get items.
Oct 10 2023, 9:33 AM
Restricted Repository Identity closed D9329: [lib] Remove convertClientToServerInfos from spec.
Oct 10 2023, 9:30 AM
Restricted Repository Identity closed D9328: [lib] Use new hashing functions in state check.
Oct 10 2023, 9:30 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMe8d666ff6bd5: [lib] Remove convertClientToServerInfos from spec.
Oct 10 2023, 9:30 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM5262824375ac: [lib] Use new hashing functions in state check.
Oct 10 2023, 9:30 AM
Restricted Repository Identity closed D9327: [lib] Add hash functions to state sync spec.
Oct 10 2023, 9:30 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMe919581da2fb: [lib] Add hash functions to state sync spec.
Oct 10 2023, 9:30 AM
Restricted Repository Identity closed D9267: [keyserver] Add new hashing to keyserver state check.
Oct 10 2023, 9:30 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM7b1601b0741d: [keyserver] Add new hashing to keyserver state check.
Oct 10 2023, 9:30 AM
Restricted Repository Identity closed D9265: [lib/web/native] Add IntegrityStore.
Oct 10 2023, 9:30 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM5fede8afd7b6: [lib/web/native] Add IntegrityStore.
Oct 10 2023, 9:30 AM
bartek added a comment to D9429: Send all notifications received by backgrounded app to JS at once.

Looks good to me but letting others review as well

Oct 10 2023, 6:26 AM
bartek accepted D9441: [identity] verify nonce in siwe message.
Oct 10 2023, 6:20 AM