Page MenuHomePhorge
Feed Search

Sep 13 2023

ashoat added inline comments to D9189: [native] Lift `component[DidMount/WillUnmount]` lifecycle methods to `useEffect` in `ConnectedChatThreadList`.
Sep 13 2023, 6:04 PM
ashoat added inline comments to D9189: [native] Lift `component[DidMount/WillUnmount]` lifecycle methods to `useEffect` in `ConnectedChatThreadList`.
Sep 13 2023, 6:02 PM
ashoat requested changes to D9189: [native] Lift `component[DidMount/WillUnmount]` lifecycle methods to `useEffect` in `ConnectedChatThreadList`.

Can you decompose into three effects?

Sep 13 2023, 6:01 PM
ashoat closed D9187: [docs] Use 127.0.0.1 in db_config.json instead of localhost.
Sep 13 2023, 5:59 PM
ashoat committed rCOMMf906621ba466: [docs] Use 127.0.0.1 in db_config.json instead of localhost.
Sep 13 2023, 5:59 PM
ashoat removed 1 blocking reviewer(s) for D9187: [docs] Use 127.0.0.1 in db_config.json instead of localhost: Restricted Owners Package.
Sep 13 2023, 5:59 PM
ashoat added a comment to D9187: [docs] Use 127.0.0.1 in db_config.json instead of localhost.

Good call

Sep 13 2023, 5:57 PM
ashoat updated the diff for D9187: [docs] Use 127.0.0.1 in db_config.json instead of localhost.

Also update mariadb-up-mac.nix

Sep 13 2023, 5:57 PM
ashoat requested review of D9187: [docs] Use 127.0.0.1 in db_config.json instead of localhost.
Sep 13 2023, 5:29 PM
ashoat requested review of D9186: [native] Avoid crashing Redux migration if inviteLinksStore isn't initialized.
Sep 13 2023, 5:25 PM
ashoat closed D9175: [keyserver] Extract sendPushNotif.
Sep 13 2023, 5:15 PM
ashoat committed rCOMMd44f1223581a: [keyserver] Extract sendPushNotif.
Sep 13 2023, 5:15 PM
ashoat added a comment to D9175: [keyserver] Extract sendPushNotif.

Successfully tested this:

Sep 13 2023, 5:13 PM
ashoat requested review of D9185: [native] Extract default Redux state to separate file.
Sep 13 2023, 5:13 PM
ashoat updated the test plan for D9175: [keyserver] Extract sendPushNotif.
Sep 13 2023, 5:13 PM
ashoat updated subscribers of D9181: [keyserver] Generate an AES256 key (ephemeral) to encode.

We actually want a 256-bit key. I think @anunay is in the process of updating that

Sep 13 2023, 5:09 PM
ashoat accepted D9174: [native] Replace `listDataSelector` with `useMemo` in `ChatThreadList`.
Sep 13 2023, 5:06 PM
ashoat accepted D9179: Save encrypted payload hash in MariaDB keyserver for iOS notifs..

Accepting since my comments are minor, but if you disagree feel free to re-request review

Sep 13 2023, 5:05 PM
ashoat accepted D9108: [web] Initialize database at startup on safari.

I won't block this diff on it, but I think we should strive to have correct types. invariants can feel messy, but I think they are better than having incorrect types

Sep 13 2023, 4:44 PM
ashoat added a comment to D9181: [keyserver] Generate an AES256 key (ephemeral) to encode.

Can we use any random string as an AES-256 key? Or are there some additional requirements?

Sep 13 2023, 4:42 PM
ashoat added inline comments to D9178: Enhance error check in CryptoModule decrypt. Add encrypted message hash to error message..
Sep 13 2023, 2:26 PM
ashoat added inline comments to D9179: Save encrypted payload hash in MariaDB keyserver for iOS notifs..
Sep 13 2023, 2:20 PM
ashoat added a comment to D9129: [lib] utility function to get array of OneTimeKeys from an OLMOneTimeKeys object.

D8751 has been landed now, so it should be easier to dedup :)

Sep 13 2023, 2:04 PM
ashoat added a comment to D9143: [lib] Add memoization to useKeyserverCall.

We already pass all actions to a hook (even in class components, we use useServerCall) so I imagine there is some way to do it. But I won't insist

Sep 13 2023, 1:20 PM
ashoat added a comment to D9158: [tunnelbroker] Hyper service for WebSocket connections.

Ah sorry, I misunderstood!

Sep 13 2023, 1:20 PM
ashoat added inline comments to D8752: [Keyserver] Upload new onetime keys to identity service when requested.
Sep 13 2023, 1:19 PM
ashoat added inline comments to D9175: [keyserver] Extract sendPushNotif.
Sep 13 2023, 1:17 PM
ashoat added a comment to D9144: Enable encrypted notification coalescing in NSE on iOS.

The UX change doesn't seem particularly bad to me, but I'd like to understand if the approach you're using here (deleting the old notif) is similar to the approaches that other encrypted apps take. Is there no way to set a "collapse ID" from the NSE?

Sep 13 2023, 1:13 PM
ashoat added inline comments to D9141: [web] Use new intial redux state.
Sep 13 2023, 1:10 PM
ashoat attached a referenced file: F755088: Screenshot 2023-09-12 at 2.42.31 PM.png.
Sep 13 2023, 1:10 PM
ashoat added a comment to D9166: [native] Lift `renderSearch` to `ConnectedChatThreadList`.

I agree that it would be good to migrate away from the Reanimated 1 API... given it's deprecated in Reanimated 3, we'll eventually need to migrate there anyways. Looking at animateTowards though, it seems fairly complicated... I don't think it makes sense to block @atul's work here on transforming that to the new Reanimated API. We'll probably need to have the Reanimated conversion be a monthly goal for someone...

Sep 13 2023, 12:08 PM
ashoat added a comment to D9158: [tunnelbroker] Hyper service for WebSocket connections.

I'm asking specifically about the health check. It's my understanding that the WebSocket protocol does not have any built-in health checks. Given we're using the Node.js ws library directly on the keyserver side, it seems like we'll either need to switch to using a compatible (Rust-based?) client, OR we'll need to do some additional work on the keyserver to implement this health check. Is that accurate?

Sep 13 2023, 11:56 AM
ashoat accepted D9114: [native] update action types and reducer for setting comm access token.

Nice, forgot I had already done some of this work!

Sep 13 2023, 11:54 AM
ashoat updated the summary of D9175: [keyserver] Extract sendPushNotif.
Sep 13 2023, 11:50 AM
ashoat requested review of D9175: [keyserver] Extract sendPushNotif.
Sep 13 2023, 1:34 AM

Sep 12 2023

ashoat added a comment to D9158: [tunnelbroker] Hyper service for WebSocket connections.

Awesome that we get the health check for free! I assume we'll need to implement something on the client for that to work, yes? The Tunnelbroker client in keyserver currently uses the ws library for Node.js

Sep 12 2023, 10:16 PM
ashoat added inline comments to D9145: [web] Remove intial redux state from website responders.
Sep 12 2023, 6:58 PM
ashoat added inline comments to D9120: [native] update UserProfileBottomSheet to get a userInfo from a userID.
Sep 12 2023, 6:51 PM
ashoat added a comment to D9143: [lib] Add memoization to useKeyserverCall.

I wonder if it would be possible to rewrite this to use React hooks instead of createSelector. I believe that all uses of createSelector can be replaced by React.useMemo. The selector funcs passed to createSelector turn into dep lists. React hooks are more modern idioms than createSelector, but I'm not sure as to all of the tradeoffs.

Sep 12 2023, 6:47 PM
ashoat added inline comments to D9141: [web] Use new intial redux state.
Sep 12 2023, 6:43 PM
ashoat requested changes to D9129: [lib] utility function to get array of OneTimeKeys from an OLMOneTimeKeys object.

Can we dedup this with the existing getOneTimeKeyValues? Looks like D8751 moves it around.

Sep 12 2023, 6:28 PM
ashoat added a comment to D8847: [native] Change ChatContextProvider position.

I think the reason is that ChatContextProvider renders dummy nodes for height measurement, and now those dummy nodes need navigation state since they might be rendering a link to a chat

Sep 12 2023, 6:22 PM
ashoat requested changes to D9108: [web] Initialize database at startup on safari.
Sep 12 2023, 6:15 PM
ashoat added inline comments to D8845: [native] Introduce markdown component for chat mentions.
Sep 12 2023, 6:11 PM
ashoat added a comment to D9126: [web][native] Fix message search showing toggle pin robotext.

Thank you!!

Sep 12 2023, 5:48 PM
ashoat added inline comments to D9115: [lib] move a shared type to lib.
Sep 12 2023, 5:31 PM
ashoat added inline comments to D9114: [native] update action types and reducer for setting comm access token.
Sep 12 2023, 5:29 PM
ashoat requested changes to D9114: [native] update action types and reducer for setting comm access token.
  1. I think we should implement a separate reducer for this. We should expect that the access token will need to be cleared for a log out, account deletion, and session invalidation. For an example, see here
  2. I think the reducer should be in lib, since this action will be shared with web. I think it should be possible to submit this diff purely on lib, without touching native or web
  3. Please keep in mind that we will also need this info to be in CommSecureStore for @marcin's purposes, since he needs to be able to access it from native code (and NSE in particular)
Sep 12 2023, 5:28 PM
ashoat added inline comments to D9121: [lib] Create useKeyserverCall.
Sep 12 2023, 5:20 PM
ashoat added inline comments to D9108: [web] Initialize database at startup on safari.
Sep 12 2023, 5:10 PM
ashoat requested changes to D8407: [keyserver] accountOwnershipResponder.

Nice!! Some nonstandard stuff in this diff; requesting changes in the hopes that we can use the more standard mechanisms

Sep 12 2023, 4:59 PM
ashoat added a comment to D7766: [landing] memoize header and footer.

Ah, my bad. It looks like @atul is right... this change would have been marginally beneficial. Sorry @ginsu!

Sep 12 2023, 2:49 PM
ashoat requested changes to D8476: [Keyserver] Publish prekeys to identity service for cron job.

Looking at the code of our Olm fork, it looks like the only effect of calling mark_prekey_as_published() is on the result of calling unpublished_prekey(). The only place we check unpublished_prekey is in the above code, where we use it to make sure that we don't throw away an old prekey before the newer prekey is published.

Sep 12 2023, 1:48 PM
ashoat accepted D8752: [Keyserver] Upload new onetime keys to identity service when requested.
Sep 12 2023, 1:03 PM
ashoat accepted D7691: [Keyserver] Open websocket connection with tunnelbroker.

JS looks good, but I don't know Rust so couldn't review that part

Sep 12 2023, 12:57 PM
ashoat accepted D9136: [native] Replace `scrollPos` instance variable w/ ref.
Sep 12 2023, 12:51 PM

Sep 11 2023

ashoat added inline comments to D8958: [native] introduce custom bottom sheet handle component.
Sep 11 2023, 8:52 PM
ashoat requested changes to D9007: [keyserver] Render chat mention in notification text.

There are so many issues here. I don't think we can proceed with this approach, especially given @patryk's limited time left at Comm.

Sep 11 2023, 8:45 PM
ashoat requested changes to D9006: [keyserver] Introduce function which checks if thread is mentionable.

See comments in D9007. Given @patryk's limited time left on Comm, I think we need to abandon this approach

Sep 11 2023, 8:42 PM
ashoat added inline comments to D8834: [lib] Introduce chat mention match and parse utilities.
Sep 11 2023, 8:12 PM
ashoat added inline comments to D8897: [native] Refactor TypeaheadTooltip component.
Sep 11 2023, 8:08 PM
ashoat added a comment to D8993: [client-backup] implement API call to upload backup.

At some point we'll probably want to think about how uploads might work in the background. If the backup is large, I could imagine that the client would need background upload in order to complete the upload. Is there a task to track this?

Sep 11 2023, 7:28 PM
ashoat added a comment to D9033: [Tunnelbroker] Add readme.

@kamil, would you be interested in commandeering this revision?

Sep 11 2023, 3:30 PM
ashoat added a comment to D8820: [Keyserver/rust] Used shared identity client.

I assume this work is necessary for the keyserver to be able to connect to the identity service. @varun, is that right? If so, I think you'll need to commandeer it.

Sep 11 2023, 3:30 PM

Sep 8 2023

ashoat added inline comments to D8927: [keyserver] Introduce keyserver state sync spec.
Sep 8 2023, 6:25 PM
ashoat added a comment to D8918: [Tunnelbroker] Authenticate connecting devices.

@kamil, would you mind commandeering this revision?

Sep 8 2023, 4:05 PM
ashoat committed rCOMMc7fae40ebb7f: [web][keyserver] codeVersion -> 25.
Sep 8 2023, 2:49 PM

Sep 7 2023

ashoat added inline comments to D8934: [keyserver/lib/web/native] Support external cameras scanning the QR code.
Sep 7 2023, 8:32 PM
ashoat added a comment to D8752: [Keyserver] Upload new onetime keys to identity service when requested.

@kamil, would you mind commandeering this revision?

Sep 7 2023, 8:31 PM
ashoat added a comment to D8956: [Keyserver] Validate incoming tunnelbroker messages.

@kamil, would you mind commandeering this revision?

Sep 7 2023, 8:30 PM
ashoat added inline comments to D8924: [keyserver][lib][native] Add connection to keyserverStore.
Sep 7 2023, 7:57 PM
ashoat added a comment to D8912: [native] Add a new screen to display a QR code as part of a new native login flow.

I don't love how we're mixing modal and panel families here. I know they are separate files, but it still feels like a violation of the design system (unless I'm missing something?)

Sep 7 2023, 7:27 PM
ashoat added a comment to D8933: [keyserver] new account creator for users already registered with identity service.

Should this be abandoned? Wondering why it's been up for 2 weeks without an update

Sep 7 2023, 7:23 PM
ashoat accepted D9089: [keyserver] Add the qrcode dependency for terminal output.
Sep 7 2023, 4:33 PM
ashoat added inline comments to D9089: [keyserver] Add the qrcode dependency for terminal output.
Sep 7 2023, 2:13 PM
ashoat committed rCOMM2b9f0dca07f4: [web][keyserver] codeVersion -> 24.
Sep 7 2023, 1:03 PM
ashoat foisted D8957: [Keyserver] Use getCommConfig for tunnelbroker connection upon kamil.

@kamil, would you mind taking over this diff, addressing my inline comment, and landing it?

Sep 7 2023, 1:14 AM
ashoat commandeered D8957: [Keyserver] Use getCommConfig for tunnelbroker connection.
Sep 7 2023, 1:14 AM
ashoat accepted D8957: [Keyserver] Use getCommConfig for tunnelbroker connection.
Sep 7 2023, 1:13 AM
ashoat accepted D9087: [native] upgrade rn-emoji-keyboard to v1.5.1.
Sep 7 2023, 1:12 AM

Aug 24 2023

ashoat committed rCOMM0a830c52419a: [native] codeVersion -> 256.
Aug 24 2023, 5:22 AM
ashoat committed rCOMM38f177b1a50c: [native] codeVersion -> 255.
Aug 24 2023, 5:20 AM
ashoat committed rCOMMa319535f8731: [web][keyserver] codeVersion -> 23.
Aug 24 2023, 5:18 AM
ashoat added inline comments to D8933: [keyserver] new account creator for users already registered with identity service.
Aug 24 2023, 5:11 AM
ashoat resigned from D8816: [Native] Encode platform type in native_rust_library.

Resigning to avoid blocking while I'm out

Aug 24 2023, 5:11 AM

Aug 23 2023

ashoat added a comment to D8929: [keyserver] modify createPickledOlmSession.

Skipping request changes to avoid blocking this diff while I'm out

Aug 23 2023, 9:04 PM
ashoat added a comment to D8906: Correct error handling across Objective-C and C++.

I won't request changes since I'm about to go out-of-office, but my instinct is that the last revision was a step backwards. Open to landing this if both @marcin and @tomek disagree and think that the changes are definitely correct. Perhaps I'm missing something

Aug 23 2023, 7:49 PM
ashoat added inline comments to D8906: Correct error handling across Objective-C and C++.
Aug 23 2023, 7:48 PM
ashoat accepted D8921: [native] fix broken messaging experience from forcing incorrect message height measurements.
Aug 23 2023, 4:17 AM
ashoat added a comment to D8829: [web] introduce useTooltip hook.

Ah yeah my bad!

Aug 23 2023, 4:16 AM
ashoat accepted D8735: [keyserver] dedup username db queries.
Aug 23 2023, 4:16 AM
ashoat accepted D8920: Revert "[native] fix RetrySend not visible when message fails".
Aug 23 2023, 4:14 AM

Aug 22 2023

ashoat added a comment to D8856: [web] Introduce `ThreadEmojiAvatarSelectionModal`.

Please address or respond to my comment before landing!

Aug 22 2023, 5:47 PM
ashoat added inline comments to D8915: [native] introduce copy username functionality to user profiles.
Aug 22 2023, 5:46 PM
ashoat added a comment to D8849: [native] Add chat mention rule to text message rules.

Note that you don't need useStyles for something that doesn't use colors. In that case you could use StyleSheet.create directly

Aug 22 2023, 5:18 PM
ashoat accepted D8905: Introduce thread-safety to NotificationsCryptoModule during cuncurrent access.

Makes sense, but the comment seems confusing

Aug 22 2023, 5:09 PM
ashoat accepted D8906: Correct error handling across Objective-C and C++.
Aug 22 2023, 5:07 PM
ashoat resigned from D8907: Introduce memory monitoring in NSE.

Thanks for breaking this out into a separate diff!

Aug 22 2023, 5:02 PM
ashoat accepted D8795: Implement synchronization mechanisms to address process, thread and class level concurrency..

Mostly nits and minor requests

Aug 22 2023, 5:00 PM
ashoat added inline comments to D8887: [client-backup] call C++ function for secure generating random string.
Aug 22 2023, 4:41 PM