Page MenuHomePhorge
Feed Search

Jul 28 2023

ashoat added a comment to D8648: [native] Use new Alert wrapper.

Please note that the only place where we still use Alert, imported from react-native, is in redux-setup.js. utils/alert.js uses the redux store to determine which theme to use. Attempting to use the alert wrapper prior to store initialization results in a You may not call store.getState() while the reducer is executing error. Although we could bypass this issue by using store.subscribe(variableUpdateCallback), the following reasons underscore why it's not an optimal approach:

  1. The variable updates with every redux store update, potentially leading to performance issues.
  2. We face a require cycle problem.

You can emulate second reason by changing import in redux-setup.js to our alert wrapper and replacing getCurrentTheme in utils/alert.js with something like this:

// ...
let currentTheme = defaultGlobalThemeInfo.activeTheme;
store.subscribe(() => {
  const nextTheme =
    store.getState().globalThemeInfo.activeTheme ||
    defaultGlobalThemeInfo.activeTheme;
  if (nextTheme !== currentTheme) {
    currentTheme = nextTheme;
  }
});
// Remember to swap all `getCurrentTheme()` occurrences to `currentTheme`
// ...
Jul 28 2023, 5:49 PM
ashoat accepted D8502: [keyserver/lib] Update the change_role message spec to include a role name field in the DB.

Minor comments, but please address before landing!

Jul 28 2023, 3:45 PM
ashoat accepted D8574: [keyserver/lib] Enable the option to delete custom roles.

Accepting since my comments are minor, but the one about a potential crash is serious. Please address comments before landing!

Jul 28 2023, 3:40 PM
ashoat added a comment to D8581: [Docs] Document how to deploy identity service.

Going forward, please make sure I do a final review of docs diffs before they're landed. It's unfortunately the case that my review is still required to get things right...

Jul 28 2023, 3:02 PM
ashoat added a comment to D8559: [web] implement functions to import/export database content.

Minor note – the filename worker-crypto-utlis.test.js has a typo

Jul 28 2023, 2:53 PM
ashoat added a comment to D8623: [web] Add an option to edit and delete select roles.

Regarding @atul's design feedback, I mostly agree with all of it. I'm not sure if it's too late to revise these designs, though... Ted is currently out, and we're trying to land this stack before the end of the month.

Jul 28 2023, 2:38 PM
ashoat added inline comments to D8623: [web] Add an option to edit and delete select roles.
Jul 28 2023, 2:36 PM
ashoat added inline comments to D8597: [web] Introduce client-side error handling to prevent duplicate role names.
Jul 28 2023, 2:35 PM
ashoat requested changes to D8593: [web] Create a community roles modal to display all roles and member counts.

The point of this code:

Jul 28 2023, 2:26 PM
ashoat committed rCOMM5aa5f1b2767c: [web][keyserver] `codeVersion` -> 15.
Jul 28 2023, 2:08 PM
ashoat closed D8651: [keyserver] Make sure we don't call fetchServerThreadInfos with empty threadIDs.
Jul 28 2023, 2:08 PM
ashoat committed rCOMMc05759090c30: [keyserver] Make sure we don't call fetchServerThreadInfos with empty threadIDs.
Jul 28 2023, 2:08 PM
ashoat requested changes to D8530: [web] Warn the user when deleting a chat that has contained chats.

Introduce a new function

Jul 28 2023, 2:06 PM
ashoat requested review of D8651: [keyserver] Make sure we don't call fetchServerThreadInfos with empty threadIDs.
Jul 28 2023, 2:04 PM
ashoat updated the diff for D8651: [keyserver] Make sure we don't call fetchServerThreadInfos with empty threadIDs.

Better to handle this in fetchServerThreadInfos, so it can't happen from any callsite

Jul 28 2023, 1:56 PM
ashoat published D8651: [keyserver] Make sure we don't call fetchServerThreadInfos with empty threadIDs for review.
Jul 28 2023, 1:51 PM
ashoat committed rCOMMa5786813dc5b: [web][keyserver] `codeVersion` -> 14.
Jul 28 2023, 1:21 PM
ashoat accepted D8649: [lib] Run conversion only on state check.
Jul 28 2023, 1:04 PM
ashoat requested changes to D8564: [native] Support the edit_role action on the keyserver.

Ended up reviewing an earlier version of the diff, but my comments all apply to the current version as well

Jul 28 2023, 1:56 AM
ashoat requested changes to D8502: [keyserver/lib] Update the change_role message spec to include a role name field in the DB.

Option #2 makes sense to me. The shimmed text isn't really something we should be spending a whole ton of time on

Jul 28 2023, 1:36 AM
ashoat added inline comments to D8574: [keyserver/lib] Enable the option to delete custom roles.
Jul 28 2023, 1:28 AM
ashoat added inline comments to D8614: Improve error logging for olm session creation failure.
Jul 28 2023, 1:23 AM
ashoat accepted D8614: Improve error logging for olm session creation failure.
Jul 28 2023, 1:22 AM
ashoat added inline comments to D8615: [keyserver][lib] Block users from creating reserved invite links.
Jul 28 2023, 1:14 AM
ashoat added inline comments to D8494: [keyserver][web][native] Handle link creation / update errors.
Jul 28 2023, 1:11 AM
ashoat accepted D8527: [keyserver] Handle offensive words in invite links.

Can you clarify what will happen on older clients when this endpoint returns a ServerError that they aren't aware of?

Jul 28 2023, 1:08 AM

Jul 27 2023

ashoat added inline comments to D8587: [Keyserver/rust] Improve debugging.
Jul 27 2023, 8:51 PM
ashoat requested changes to D8590: [native] Warn the user when deleting a chat that has contained chats.

This code has a lot of issues

Jul 27 2023, 8:47 PM
ashoat requested changes to D8530: [web] Warn the user when deleting a chat that has contained chats.
Jul 27 2023, 8:42 PM
ashoat updated subscribers of D8529: Implement utility function on the keyserver to upload notification payload to blob service.
Jul 27 2023, 8:37 PM
ashoat added inline comments to D8529: Implement utility function on the keyserver to upload notification payload to blob service.
Jul 27 2023, 8:35 PM
ashoat added inline comments to D8586: [native] Use currently selected theme for alerts..
Jul 27 2023, 8:30 PM
ashoat added a comment to D8565: [web] remove `sql.js` dependency.

Nice!!

Jul 27 2023, 8:14 PM
ashoat added a comment to D8561: [web] remove old raw SQL queries.

Love a good red diff!!

Jul 27 2023, 8:14 PM
ashoat accepted D8599: [native] upgrade rn-emoji-keyboard to v1.5.0.
Jul 27 2023, 8:13 PM
ashoat added inline comments to D8478: [lib] Add unit tests for user-facing permissions to verify the result.
Jul 27 2023, 8:03 PM
ashoat added a comment to D8545: [web] add types for WASM Module.

Same feedback as here... best to avoid class and interface if possible. Sometimes they are needed for inheritance reasons, but it doesn't look like it here

Jul 27 2023, 7:54 PM
ashoat added a comment to D8544: [web] Add types for WASM File System API.

Interface is a weird construction in Flow... it's generally best to use type if possible. Is there a strong reason for using interface here?

Jul 27 2023, 7:25 PM
ashoat added a comment to D8589: Upload Android notification payload to blob service if its size exceeds limits.

I haven't reviewed this closely... just leaving some minor notes.

Jul 27 2023, 7:22 PM
ashoat requested changes to D8577: [Docs] Document keyserver deployment.
Jul 27 2023, 7:06 PM
ashoat accepted D8476: [Keyserver] Publish prekeys to identity service for cron job.
Jul 27 2023, 6:38 PM
ashoat requested changes to D7691: [Keyserver] Open websocket connection with tunnelbroker.
Jul 27 2023, 6:28 PM
ashoat accepted D8572: [desktop] Bump electron version.

Excited to have this bug resolved!!

Jul 27 2023, 5:56 PM
ashoat resigned from D8573: [desktop] Add context menu.

New dependency looks good!

Jul 27 2023, 5:50 PM
ashoat requested changes to D8574: [keyserver/lib] Enable the option to delete custom roles.
Jul 27 2023, 5:00 PM
ashoat added inline comments to D8526: [lib] Add containedThreadInfos selector.
Jul 27 2023, 4:48 PM
ashoat accepted D8638: Possible solution for broken iOS notifications.

Please address these comments before landing. They are repeats from my previous review

Jul 27 2023, 2:58 PM
ashoat committed rCOMMfb2f51653709: [web][keyserver] `codeVersion` -> 13.
Jul 27 2023, 1:34 AM

Jul 26 2023

ashoat added a comment to D8527: [keyserver] Handle offensive words in invite links.
In D8527#253676, @tomek wrote:

Can you provide some more context on the selection of this package? I noticed it hasn't been updated in 3 years and has some unaddressed GitHub issues, but I'm guessing your research showed that it's the best option.

It is the most popular NPM package for profanity checks https://www.npmjs.com/search?q=keywords%3Aprofanity&ranking=popularity. Also, the issues on Github aren't serious. The implementation is so simple that it doesn't need frequent updates.

Jul 26 2023, 9:59 PM
ashoat requested changes to D8638: Possible solution for broken iOS notifications.

Passing back to @marcin with some requests

Jul 26 2023, 7:30 PM
ashoat added inline comments to D8638: Possible solution for broken iOS notifications.
Jul 26 2023, 6:40 PM
ashoat added inline comments to D8638: Possible solution for broken iOS notifications.
Jul 26 2023, 6:40 PM
ashoat closed D8579: Delete some GitHub stuff to save disk space on Android GitHub build.
Jul 26 2023, 2:20 AM
ashoat committed rCOMM60cfe52d5bd0: Delete some GitHub stuff to save disk space on Android GitHub build.
Jul 26 2023, 2:20 AM

Jul 25 2023

ashoat added inline comments to D8614: Improve error logging for olm session creation failure.
Jul 25 2023, 6:48 PM

Jul 20 2023

ashoat requested changes to D8476: [Keyserver] Publish prekeys to identity service for cron job.

Only got through the first file. You still don't understand the feedback I've been repeating on every one of your keyserver diffs. You need to step back and try to understand async/await in JS. Please make sure I don't have to give you this feedback again.

Jul 20 2023, 6:08 PM
ashoat added inline comments to D8530: [web] Warn the user when deleting a chat that has contained chats.
Jul 20 2023, 2:51 PM
ashoat resigned from D8530: [web] Warn the user when deleting a chat that has contained chats.
Jul 20 2023, 2:44 PM
ashoat updated the diff for D8579: Delete some GitHub stuff to save disk space on Android GitHub build.

Do it for both Android GitHub workflows

Jul 20 2023, 2:15 AM
ashoat requested review of D8579: Delete some GitHub stuff to save disk space on Android GitHub build.
Jul 20 2023, 2:12 AM
ashoat committed rCOMM1c252ce13d30: [native] codeVersion -> 238.
Jul 20 2023, 12:30 AM
ashoat committed rCOMMf08929e0971f: [native] codeVersion -> 236.
Jul 20 2023, 12:12 AM

Jul 19 2023

ashoat committed rCOMMafc4fcf27cd8: [native] codeVersion -> 234.
Jul 19 2023, 9:52 PM
ashoat committed rCOMM7880b8e6b128: Replace NEXT_CODE_VERSION with 233.
Jul 19 2023, 9:52 PM
ashoat committed rCOMM760a4006eff1: [web][keyserver] `codeVersion` -> 12.
Jul 19 2023, 9:52 PM
ashoat resigned from D8538: [Keyserver/rust] Initialize gRPC with host's TLS certs.

No context on Rust

Jul 19 2023, 6:48 PM
ashoat closed D8543: [native] Disable stack gestures while editing messages.
Jul 19 2023, 5:27 PM
ashoat closed D8542: [native] Prevent setEditedMessageChanged from updating EditState when no changes.
Jul 19 2023, 5:27 PM
ashoat committed rCOMMe275bd060a6a: [native] Disable stack gestures while editing messages.
Jul 19 2023, 5:27 PM
ashoat committed rCOMMf5dda1f55ffc: [native] Prevent setEditedMessageChanged from updating EditState when no changes.
Jul 19 2023, 5:27 PM
ashoat closed D8541: [native] Factor out EditState into its own context.
Jul 19 2023, 5:27 PM
ashoat committed rCOMMab6e16a0a179: [native] Factor out EditState into its own context.
Jul 19 2023, 5:27 PM
ashoat added inline comments to D8543: [native] Disable stack gestures while editing messages.
Jul 19 2023, 5:26 PM
ashoat updated the diff for D8543: [native] Disable stack gestures while editing messages.

Update

Jul 19 2023, 5:26 PM
ashoat requested review of D8543: [native] Disable stack gestures while editing messages.
Jul 19 2023, 4:01 AM
ashoat requested review of D8542: [native] Prevent setEditedMessageChanged from updating EditState when no changes.
Jul 19 2023, 3:56 AM
ashoat requested review of D8541: [native] Factor out EditState into its own context.
Jul 19 2023, 3:55 AM

Jul 18 2023

ashoat added inline comments to D8502: [keyserver/lib] Update the change_role message spec to include a role name field in the DB.
Jul 18 2023, 5:53 PM
ashoat accepted D8528: [web] Fix channel deletion problem.

Oops, sorry about that!!

Jul 18 2023, 3:31 PM
ashoat added a comment to D8527: [keyserver] Handle offensive words in invite links.

Can you provide some more context on the selection of this package? I noticed it hasn't been updated in 3 years and has some unaddressed GitHub issues, but I'm guessing your research showed that it's the best option.

Jul 18 2023, 1:14 PM
ashoat added inline comments to D8524: [native] Navigate to the role creation screen with pre-populated fields for editing roles.
Jul 18 2023, 1:12 PM

Jul 17 2023

ashoat committed rCOMM4d90d75dbed4: [web][keyserver] `codeVersion` -> 11.
Jul 17 2023, 3:53 PM
ashoat requested changes to D7691: [Keyserver] Open websocket connection with tunnelbroker.
Jul 17 2023, 2:31 PM
ashoat added inline comments to D8521: Enable webcrypto usage in keyserver codebase and unify aes crypto stack across web and the keyserver.
Jul 17 2023, 2:28 PM
ashoat accepted D8520: Modify NIX and keyserver configuration files to allow node version >= 18.
Jul 17 2023, 2:26 PM
ashoat added a comment to D8518: [web] Inherit min-height property for media elements.

Testing small images with normal aspect ratios, to make sure they don't get "zoomed in" to the size of the container, and instead stay the small size

Jul 17 2023, 2:22 PM
ashoat added a comment to D8518: [web] Inherit min-height property for media elements.

Can you add some more things to the Test Plan?

Jul 17 2023, 1:08 PM
ashoat closed D8514: [keyserver] Filter fetchThreadInfos queries to only look at viewer's threads.
Jul 17 2023, 1:07 PM
ashoat committed rCOMMc92d32ab3b1b: [keyserver] Filter fetchThreadInfos queries to only look at viewer's threads.
Jul 17 2023, 1:07 PM
ashoat closed D8513: [keyserver] Replace raw SQL predicate to fetchThreadInfos with filter object.
Jul 17 2023, 1:07 PM
ashoat closed D8512: [keyserver] Introduce index to optimize new fetchThreadInfos query.
Jul 17 2023, 1:07 PM
ashoat committed rCOMM2589080b2417: [keyserver] Replace raw SQL predicate to fetchThreadInfos with filter object.
Jul 17 2023, 1:07 PM
ashoat committed rCOMM72e5787d22ca: [keyserver] Introduce index to optimize new fetchThreadInfos query.
Jul 17 2023, 1:07 PM
ashoat closed D8511: [keyserver] Simplify various codepaths following deprecation of old codeVersions.
Jul 17 2023, 1:07 PM
ashoat closed D8510: [keyserver][lib] Simplify state check mechanism following deprecation of old codeVersions.
Jul 17 2023, 1:07 PM
ashoat committed rCOMMedcd45bf4e3b: [keyserver] Simplify various codepaths following deprecation of old codeVersions.
Jul 17 2023, 1:07 PM
ashoat closed D8509: [keyserver][lib] Simplify remaining thread responders following deprecation of old codeVersions.
Jul 17 2023, 1:07 PM
ashoat closed D8508: [keyserver][lib] Simplify leaveThread/deleteThread return type following deprecation of old codeVersions.
Jul 17 2023, 1:07 PM
ashoat committed rCOMM439b8c655938: [keyserver][lib] Simplify state check mechanism following deprecation of old….
Jul 17 2023, 1:07 PM
ashoat committed rCOMMda9627e2609a: [keyserver][lib] Simplify remaining thread responders following deprecation of….
Jul 17 2023, 1:07 PM