Page MenuHomePhabricator
Feed Advanced Search

Feb 27 2023

ashoat added a comment to D6897: [keyserver] Verify `signedIdentityKeysBlob` signature in `logInResponder`.
In D6897#205149, @atul wrote:

We could probably just have a function getOlmUtility that returns a Promise that does lines 345 and 346 here, and caches the result.

I'll need to make sure there that await olm.init(); is "idempotent" and there aren't any issues with calling it multiple times. Just want to make sure in the case where the keyserver gets multiple siwe_auth requests at the same time that calling await olm.init() simultaneously/multiple times doesn't break anything.

Feb 27 2023, 1:28 PM
ashoat added a comment to D6898: [keyserver] Tunnelbroker integration - Adding message object on message consuming.
Feb 27 2023, 8:02 AM
ashoat resigned from D6898: [keyserver] Tunnelbroker integration - Adding message object on message consuming.

Please make the requested edit before landing. Otherwise Flow types look good, but defer to others on Rust

Feb 27 2023, 7:32 AM

Feb 26 2023

ashoat accepted D6485: [keyserver] Create a function to query for all uploads from a provided threadID.

Awesome!! I thought you had earlier indicated that a parentheses was necessary, but either way it sounds like now you’re in agreement with that StackOverflow post about the ORDER BY / LIMIT.

Feb 26 2023, 10:11 AM
ashoat requested changes to D6897: [keyserver] Verify `signedIdentityKeysBlob` signature in `logInResponder`.

Nice! After this verification step, we should then JSON.parse(signedIdentityKeysBlob.payload) and run the result through an input validator. Then we'll be ready to store them in the DB. (Assume that's for a later diff, though.)

Feb 26 2023, 5:49 AM
ashoat accepted D6864: [web] Link modal in the thread menu.
Feb 26 2023, 5:41 AM
ashoat added a comment to D6896: [web] Pass `signedIdentityKeysBlob` to `keyserver` on `siwe_auth`.

PS looks like a missing screenshot in the Test Plan.

Feb 26 2023, 5:41 AM
ashoat accepted D6896: [web] Pass `signedIdentityKeysBlob` to `keyserver` on `siwe_auth`.

Nice!!

Feb 26 2023, 5:40 AM
ashoat accepted D6895: [keyserver] Add `signedIdentityKeysBlobValidator` to `logInRequestInputValidator`.
Feb 26 2023, 5:39 AM
ashoat removed 1 blocking reviewer(s) for D6829: [keyserver] convert existing logic for building userPushInfoPromises to an async function called generateNotifUserInfoPromise: atul.
Feb 26 2023, 5:38 AM
ashoat accepted D6829: [keyserver] convert existing logic for building userPushInfoPromises to an async function called generateNotifUserInfoPromise.
Feb 26 2023, 5:38 AM
ashoat requested changes to D6634: [web] implement emoji keyboard position into message tooltip.

I spent some time reading through this and I understand how it works now. @ginsu wanted to catch the ref just as it was set, so he made a useEffect that would trigger immediately after renderEmojiKeyboard flips, which as it turns out will trigger the rendering of the emoji keyboard. He got this idea from the article he linked earlier.

Feb 26 2023, 5:32 AM
ashoat added a comment to D6634: [web] implement emoji keyboard position into message tooltip.

Moving forward, if I run into situations where I am submitting code that is not an obviously clear solution, I will be sure to annote with comments with my rationale-- something that I can work on. This should require me think more critically of my solutions, learn better, and offer more context for my reviewer.

Feb 26 2023, 4:56 AM
ashoat added inline comments to D6884: [web] "Unpickle" primary OLM account to sign keys and get `SignedIdentityKeysBlob`.
Feb 26 2023, 4:55 AM
ashoat added inline comments to D6894: [desktop] Handle macos notifications.
Feb 26 2023, 4:50 AM
ashoat accepted D6893: [keyserver] Send macos notifications.

It looks like you're adding support for sending push notifs, but support is still missing for rescinds and for updateBadgeCount. Rescinds may be hard but updateBadgeCount should be easy.

Feb 26 2023, 4:48 AM
ashoat accepted D6892: [keyserver] Extend ios notifs to handle macos.
Feb 26 2023, 4:43 AM
ashoat accepted D6890: [desktop] Add port to development URL.
Feb 26 2023, 4:39 AM
ashoat accepted D6889: [keyserver/web/desktop] Add macos and windows as platforms.
Feb 26 2023, 4:38 AM
ashoat accepted D6888: [keyserver] Introduce isWebPlatform function.
Feb 26 2023, 4:34 AM
ashoat accepted D6875: [lib/native/web] switch reactions data structure from map to plain object.

Perfect! Love the small extra improvements you made

Feb 26 2023, 4:32 AM

Feb 25 2023

ashoat requested changes to D6485: [keyserver] Create a function to query for all uploads from a provided threadID.

Permission checks query seems good. Can you amend the Test Plan to mention how you tested them?

Feb 25 2023, 6:24 PM

Feb 24 2023

ashoat accepted D6885: [native] Extract device token reducer to lib.
Feb 24 2023, 3:16 PM
ashoat added a comment to D6835: [web] Handle clicking on notifications.

Good catch @inka!!

Feb 24 2023, 3:15 PM
ashoat accepted D6820: [web] Add notification permission modal.
Feb 24 2023, 3:15 PM
ashoat accepted D6818: [web] Register service worker for notifs.
Feb 24 2023, 3:13 PM
ashoat accepted D6817: [keyserver] Send web push notification.

Accepting to unblock, but would be great if we could avoid Object for new code. Not sure how easy it is to avoid here and whether the type there is predictable from whatever API we are getting it from

Feb 24 2023, 3:12 PM
ashoat accepted D6815: [keyserver/ web] Handle device_token on web.
Feb 24 2023, 3:06 PM
ashoat added inline comments to D6781: Initialize notifications olm account in CommCoreModule and expose notifications public keys to JS.
Feb 24 2023, 3:01 PM
ashoat removed 1 blocking reviewer(s) for D6485: [keyserver] Create a function to query for all uploads from a provided threadID: atul.
Feb 24 2023, 2:57 PM
ashoat accepted D6485: [keyserver] Create a function to query for all uploads from a provided threadID.

Please only land if you can confirm that the ORDER BY and LIMIT apply to the whole query, not just the second half

Feb 24 2023, 2:57 PM
ashoat added a comment to D6823: Make types exact.

It might be for backwards compatibility, or maybe just for convenience of accessing. The idea of getConstants() is that it's called once by the module at initialization, so actually I think calling it directly might also have some nuanced differences if there is some stateful code there

Feb 24 2023, 2:48 PM
ashoat added inline comments to D6485: [keyserver] Create a function to query for all uploads from a provided threadID.
Feb 24 2023, 11:33 AM
ashoat added inline comments to D6485: [keyserver] Create a function to query for all uploads from a provided threadID.
Feb 24 2023, 11:31 AM
ashoat added a comment to D6634: [web] implement emoji keyboard position into message tooltip.

@ginsu, strongly encourage you to be more critical of yourself before submitting code in the future. This pattern of submitting code you feel like might be "good enough" to sneak past review leads to wasted time for both you and your reviewers. You should hold yourself to a higher standard – it will help you learn better, and it will save you time.

Feb 24 2023, 8:42 AM
ashoat added a comment to D6854: [services] Extract common database code to a separate lib.

This seems like it would've been a great time to introduce a shared library instead of copy-pasting. I understand there is a monthly goal at play here, but how long does it really take to set up a shared library? In JavaScript it can be done in ~15min, but I'm not as familiar with Rust

Feb 24 2023, 8:41 AM
ashoat requested changes to D6875: [lib/native/web] switch reactions data structure from map to plain object.
Feb 24 2023, 8:39 AM
ashoat added a comment to D6865: [web] Allow media gallery items to click through to a full screen view on web.

Why are we using Modal though? Should we just update MultimediaModal to look like those designs?

Feb 24 2023, 8:35 AM
ashoat accepted D6884: [web] "Unpickle" primary OLM account to sign keys and get `SignedIdentityKeysBlob`.

Accepting to unblock, but a little confused since I don't see the keyserver side

Feb 24 2023, 8:22 AM
ashoat accepted D6883: [web] Pickle `OLMAccount`s and add to Redux `CryptoStore`.
Feb 24 2023, 8:19 AM
ashoat accepted D6882: [web] Add `PickledOLMAccount`s to Redux `CryptoStore`.

Nice, glad you're persisting this

Feb 24 2023, 8:17 AM
ashoat accepted D6881: [web] Ensure that `[primary/notification]IdentityPublicKeys` are set in `TraditionalLoginForm`.

Accepting to unblock, but not clear why we're sending primaryIdentityPublicKey up twice

Feb 24 2023, 8:17 AM
ashoat accepted D6880: [web] Update `primaryIdentityPublicKey[s]` selector to capture `primaryIdentityPublicKeys`.
Feb 24 2023, 8:16 AM
ashoat accepted D6879: [web] Update `LoginForm` `useEffect` early-exit logic to include `notificationIdentityPublicKeys`.
Feb 24 2023, 8:15 AM
ashoat accepted D6878: [web] Dispatch `setNotificationIdentityKeys` in `LoginForm`.
Feb 24 2023, 8:15 AM
ashoat accepted D6877: [web] Introduce `cryptoStore` to replace `primaryIdentityPublicKey` in Redux.

EDIT – never mind, I see this is addressed later in the stack

Feb 24 2023, 8:14 AM
ashoat accepted D6876: [web] Rename `setPrimaryIdentityPublicKey` to `setPrimaryIdentityKeys`.

Had a thought here – we should update our sanitization code to sanitize these public keys, as they are user-identifiable. Can you create a task for that and link here before landing? (Or a diff)

Feb 24 2023, 8:09 AM
ashoat accepted D6863: [web] Create a new modal for the media gallery on web.
Feb 24 2023, 6:12 AM

Feb 23 2023

ashoat requested review of D6869: [lib] Collapse CreateSidebar and SidebarSource notifs together.
Feb 23 2023, 2:24 PM
ashoat requested review of D6874: [lib] Make CreateSidebar notifs say when the OP tags the notif recipient.
Feb 23 2023, 1:46 PM
ashoat requested review of D6873: [keyserver][lib] Pass notifTargetUserInfo to notificationTexts.
Feb 23 2023, 1:44 PM
ashoat requested review of D6872: [keyserver] Update notif prepare functions to take bag of params.
Feb 23 2023, 1:39 PM
ashoat requested review of D6871: [keyserver] Make sure we fetch username of all notif recipients.
Feb 23 2023, 1:39 PM
ashoat requested review of D6870: [lib] Add invariant to SidebarSource notificationTexts.
Feb 23 2023, 1:32 PM
ashoat requested review of D6868: [lib] Allow multiple messages in CreateSidebar notificationTexts.
Feb 23 2023, 1:29 PM
ashoat requested review of D6867: [keyserver] Check SIDEBAR_SOURCE's source message for @-mention notif override.
Feb 23 2023, 1:27 PM
ashoat requested review of D6866: [keyserver] Check all new messages for @-mention notif override.
Feb 23 2023, 1:26 PM
ashoat accepted D6836: [identity] add nonces table to dynamoDB.
Feb 23 2023, 1:18 PM
ashoat added inline comments to D6864: [web] Link modal in the thread menu.
Feb 23 2023, 12:38 PM
ashoat added inline comments to D6865: [web] Allow media gallery items to click through to a full screen view on web.
Feb 23 2023, 12:37 PM
ashoat added a comment to D6863: [web] Create a new modal for the media gallery on web.

Just some nits

Feb 23 2023, 12:32 PM
ashoat accepted D6830: [keyserver] introduce sendRescindNotifs.
Feb 23 2023, 12:27 PM
ashoat requested changes to D6829: [keyserver] convert existing logic for building userPushInfoPromises to an async function called generateNotifUserInfoPromise.

You need to do more than just add async. I don't think you have a full understanding of async/await here

Feb 23 2023, 12:02 PM
ashoat accepted D6690: [keyserver] Unifying API interface and adding Tunnelbroker types.

I tested the types and they're good. Did not test the actual bindings but I assume @max did

Feb 23 2023, 12:01 PM
ashoat added inline comments to D6822: Sign concatenation of public and notif keypairs using private key of public identity.
Feb 23 2023, 12:00 PM
ashoat added inline comments to D6835: [web] Handle clicking on notifications.
Feb 23 2023, 11:59 AM
ashoat accepted D6718: [native] Navigate to the image / video modal when a user clicks on a media item.
Feb 23 2023, 11:58 AM
ashoat added inline comments to D6781: Initialize notifications olm account in CommCoreModule and expose notifications public keys to JS.
Feb 23 2023, 11:35 AM
ashoat accepted D6846: [native] Deleted react-native-exit-app library.
Feb 23 2023, 11:33 AM
ashoat accepted D6844: [native] Replaced react-native-exit-app calls with CommCoreModule calls.
Feb 23 2023, 11:33 AM
ashoat accepted D6834: [native] Added terminate() implementation in JS and CommCoreModule.
Feb 23 2023, 11:33 AM
ashoat updated the diff for D6690: [keyserver] Unifying API interface and adding Tunnelbroker types.

Fix Flow types and remove .default

Feb 23 2023, 8:50 AM
ashoat added inline comments to D6690: [keyserver] Unifying API interface and adding Tunnelbroker types.
Feb 23 2023, 8:39 AM
ashoat accepted D6823: Make types exact.

Okay, just make sure you did this part of the Test Plan so that all constants are included:

Feb 23 2023, 8:18 AM
ashoat closed D6847: [native] Add filtering entitlement to Notification Service Extension.
Feb 23 2023, 8:17 AM
ashoat committed rCOMM5094d6fa2538: [native] Add filtering entitlement to Notification Service Extension (authored by ashoat).
[native] Add filtering entitlement to Notification Service Extension
Feb 23 2023, 8:17 AM
ashoat requested review of D6847: [native] Add filtering entitlement to Notification Service Extension.
Feb 23 2023, 7:20 AM
ashoat added inline comments to D6718: [native] Navigate to the image / video modal when a user clicks on a media item.
Feb 23 2023, 7:15 AM

Feb 22 2023

ashoat added a comment to D6836: [identity] add nonces table to dynamoDB.

Otherwise there's no way to relate a nonce to an on-going exchange. Unless I'm missing something.

Feb 22 2023, 4:44 PM
ashoat added a comment to D6836: [identity] add nonces table to dynamoDB.

@atul and I had to deal with the same question when designing this on the keyserver side. General conclusion is that it probably isn't super important to associate a nonce with a specific session in this specific case.

Feb 22 2023, 4:41 PM
ashoat requested changes to D6718: [native] Navigate to the image / video modal when a user clicks on a media item.

Memoization is perfect! Almost done here, just an issue with the index

Feb 22 2023, 4:27 PM
ashoat accepted D6720: [native] Create the full screen media gallery component.

Perfect!!

Feb 22 2023, 1:51 PM
ashoat accepted D6836: [identity] add nonces table to dynamoDB.

I have no idea how to interpret this syntax... maybe @jon knows or can get up-to-speed on it?

Feb 22 2023, 11:37 AM
ashoat added inline comments to D6835: [web] Handle clicking on notifications.
Feb 22 2023, 11:31 AM
ashoat resigned from D6834: [native] Added terminate() implementation in JS and CommCoreModule.

It looks great, but I think this should be two or three diffs:

Feb 22 2023, 11:30 AM
ashoat accepted D6820: [web] Add notification permission modal.

Can you add a screenshot to the Test Plan?

Feb 22 2023, 11:23 AM
ashoat accepted D6819: [web] Add hook for creating push subscription.
Feb 22 2023, 11:17 AM
ashoat requested changes to D6818: [web] Register service worker for notifs.

Confused why this needs to be a React component

Feb 22 2023, 11:16 AM
ashoat accepted D6831: [native] Don't prompt SIWE users about keeping login info on logout.

Copy seems fine, defer to you on Yes/No vs. Cancel/Log out

Feb 22 2023, 11:11 AM
ashoat requested changes to D6829: [keyserver] convert existing logic for building userPushInfoPromises to an async function called generateNotifUserInfoPromise.
Feb 22 2023, 11:09 AM
ashoat requested changes to D6830: [keyserver] introduce sendRescindNotifs.
Feb 22 2023, 11:08 AM
ashoat resigned from D6827: [identity] CompareUsers RPC.

Resigning to avoid removing from reviewer's queue, but feel free to re-add me later

Feb 22 2023, 10:53 AM
ashoat accepted D6826: [lib] Require `primaryIdentityPublicKey` in `SIWEStatement`.
Feb 22 2023, 10:50 AM

Feb 21 2023

ashoat requested changes to D6720: [native] Create the full screen media gallery component.

Memoization confusion continues to abound. The current approach is simply not working... you can't continue to "guess and check". It's not a good use of my time and not a good use of your time.

Feb 21 2023, 12:31 PM
ashoat added a comment to D6720: [native] Create the full screen media gallery component.

Can you send a message to the UX Team chat? I don’t think Ted is fully aware of Dave’s inflight work on colors.js. I don’t think Dave has colors for this new entry in his recent themes. cc @atul

Feb 21 2023, 12:19 PM
ashoat accepted D6790: [Keyserver/rust-addon] Call identity deleteUser on account deletion.
Feb 21 2023, 12:08 PM
ashoat requested changes to D6823: Make types exact.

Aren't we missing "FETCH_RESULT_NO_DATA", "FETCH_RESULT_NEW_DATA", "FETCH_RESULT_FAILED"? Source here

Feb 21 2023, 12:06 PM
ashoat added a comment to D6821: Implement method to sign message.

Great work finding the right utilities in the Olm library!!

Feb 21 2023, 12:03 PM
ashoat added inline comments to D6485: [keyserver] Create a function to query for all uploads from a provided threadID.
Feb 21 2023, 8:59 AM
ashoat requested changes to D6815: [keyserver/ web] Handle device_token on web.
Feb 21 2023, 6:58 AM